Home > Back-end >  How can I avoid from being see the thick rectangle around a control when selecting the control at ru
How can I avoid from being see the thick rectangle around a control when selecting the control at ru

Time:12-26

This is not my control I downloaded it from this page :

Rectangle like selecting the control but at run time

CodePudding user response:

At the bottom of the OnPaint override method in the MACTrackBar.cs file, comment out these lines:

// Draws a focus rectangle
// if(this.Focused)
//   ControlPaint.DrawFocusRectangle(e.Graphics, 
//                                   Rectangle.Inflate(this.ClientRectangle, -2, -2));
  • Related