DrawText

This method draws text in a PictureBox control.

Syntax

picturebox.DrawText string, [x], [y]

Parameters

picturebox
Reference to a PictureBox object.
string
Text to be drawn.
x, y
Optional. Coordinates of the text to be drawn. If not specified, string is drawn on a new line.

Return Value

None.

Remarks

The font properties of the PictureBox control determines the appearance of the text. The ForeColor property determines the color of the text.