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)

Parameters

graphics
The System.Drawing.Graphics to draw on.
rectangle
The System.Drawing.Rectangle that represents the dimensions of the grab handle glyph.

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