System.Windows.Forms.ControlPaint.DrawFocusRectangle Method

Draws a focus rectangle on the specified graphics surface and within the specified bounds.

Syntax

public static void DrawFocusRectangle (System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Drawing.Color foreColor, System.Drawing.Color backColor)

Parameters

graphics
The System.Drawing.Graphics to draw on.
rectangle
The System.Drawing.Rectangle that represents the dimensions of the grab handle glyph.
foreColor
The System.Drawing.Color that is the foreground color of the object to draw the focus rectangle on.
backColor
The System.Drawing.Color that is the background color of the object to draw the focus rectangle on.

Remarks

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0