NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlPaint.DrawFocusRectangle (Graphics, Rectangle, Color, Color)

Draws a focus rectangle. A focus rectangle is a dotted rectangle that Windows uses to indicate what control has the current keyboard focus.

[Visual Basic]
Overloads Public Shared Sub DrawFocusRectangle( _
   ByVal g As Graphics, _
   ByVal r As Rectangle, _
   ByVal foreColor As Color, _
   ByVal backColor As Color _
)
[C#]
public static void DrawFocusRectangle(
   Graphics g,
   Rectangle r,
   Color foreColor,
   Color backColor
);
[C++]
public: static void DrawFocusRectangle(
   Graphics* g,
   Rectangle r,
   Color foreColor,
   Color backColor
);
[JScript]
public static function DrawFocusRectangle(
   g : Graphics,
   r : Rectangle,
   foreColor : Color,
   backColor : Color
);

Parameters

g
The graphics to draw the focus rectangle on.
r
The rectangle to draw.
foreColor
The foreground color of the object the focus rectangle is to be drawn on. This defaults to SystemColors.ControlText.
backColor
The background color of the object the focus rectangle is to be drawn on. This defaults to SystemColors.Control.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace | ControlPaint.DrawFocusRectangle Overload List