[]
Draws a text in the TextBox client area.
public static void DrawText(this TextBox textBox, Graphics graphics, string text, Color foreColor, Color backColor)
Public Shared Sub DrawText(textBox As TextBox, graphics As Graphics, text As String, foreColor As Color, backColor As Color)
| Type | Name | Description |
|---|---|---|
| TextBox | textBox | The TextBox in which the text is drawn. |
| Graphics | graphics | The Graphics object used to paint. |
| string | text | The text to be drawn. |
| Color | foreColor | The foreground color of the text. |
| Color | backColor | The background color of the text. |
This method is used to draw placeholder text or the text of a disabled text box.