public LBKnob() { InitializeComponent(); // Set the styles for drawing SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw | ControlStyles.DoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); // Transparent background this.BackColor = Color.Transparent; this.defaultRenderer = new LBKnobRenderer(); this.defaultRenderer.Knob = this; this.CalculateDimensions(); }