protected virtual void InitializeGraphics()
{
m_BackgroundBrush = new SolidBrush( Color.FromArgb( 137, 137, 137 ) );
m_BackgroundBrushDisabled = new SolidBrush( Color.FromArgb( 170, 170, 170 ) );
m_SliderBrush = new SolidBrush( Color.FromArgb( 200, 200, 200 ) );
ImageAttributes ImageAttr = new ImageAttributes();
ImageAttr.SetWrapMode( WrapMode.Tile ); // Set the wrap mode so it tiles
// Create a TextureBrush for the middle trackbar portion to tile
Rectangle BrushRect = new Rectangle( new Point( 0, 0 ), Properties.Resources.Trackbar___Middle.Size );
m_BrushTrackbarMiddle = new TextureBrush( Properties.Resources.Trackbar___Middle, BrushRect, ImageAttr );
}