DrawText Method (TextBoxEx)
In This Topic
Draws a text in the System.Windows.Forms.TextBox client area.
Syntax
'Declaration
Public Shared Sub DrawText( _
ByVal As System.Windows.Forms.TextBox, _
ByVal As System.Drawing.Graphics, _
ByVal As System.String, _
ByVal As System.Drawing.Color, _
ByVal As System.Drawing.Color _
)
public static void DrawText(
System.Windows.Forms.TextBox ,
System.Drawing.Graphics ,
System.string ,
System.Drawing.Color ,
System.Drawing.Color
)
Parameters
- textBox
- The System.Windows.Forms.TextBox in which the text is drawn.
- graphics
- The System.Drawing.Graphics object used to paint.
- text
- The text to be drawn.
- foreColor
- The foreground color of the text.
- backColor
- The background color of the text.
See Also