System.Windows.Forms.TextBoxRenderer.DrawTextBox Method

Draws a text box control in the specified state and bounds.

Syntax

public static void DrawTextBox (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.VisualStyles.TextBoxState state)

Parameters

g
The System.Drawing.Graphics used to draw the text box.
bounds
The System.Drawing.Rectangle that specifies the bounds of the text box.
state
One of the System.Windows.Forms.VisualStyles.TextBoxState values that specifies the visual state of the text box.

Remarks

Before calling this method, you should verify that the TextBoxRenderer.IsSupported property returns true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0