Archive for June, 2006
Rendering a Focus Rectangle
Although you can use the DrawRectangle method to render a focus rectangle, you’ll have to set up the pen to render in the stadard dotted format. However, in the controlpaint static class there is already a DrawFocusRectangle method which does the job for you and makes the appropriate system call.
[csharp]
ControlPaint.DrawFocusRectangle(g, FocusRect);
[/csharp]
ControlPaint is found in System.Windows.Forms.