Draws a text box control in the specified state and bounds, and with the specified text and text bounds.
- g
The System.Drawing.Graphics used to draw the text box.
- bounds
The System.Drawing.Rectangle that specifies the bounds of the text box.
- textBoxText
The string to draw in the text box.
- font
The System.Drawing.Font to apply to textBoxText.
- textBounds
The System.Drawing.Rectangle that specifies the bounds of textBoxText.
- state
One of the System.Windows.Forms.VisualStyles.TextBoxState values that specifies the visual state of the text box.
Before calling this method, you should verify that the TextBoxRenderer.IsSupported property returns true.