Drawing Text on Screen

We may have learned how to draw rectangle, ellipse and circle in visual basic 2013 , but do you know that we can draw text on the screen? Yes, indeed you can draw text on the screen.

In order to draw text on the screen, we can use the DrawString method. The format is as follows:

myGraphics.DrawString(myText, myFont, mybrush, X , Y)

Where myGraphics is the Graphics object, myText is the text you wish to display on the screen, myFont is the font object created by you, myBrush is the brush style created by you and X, Y are the coordinates of upper left corner of the Text.

You can create the Font object in visual basic 2013 using the following statement:

myFont = New System.Drawing.Font(“Verdana”, 20)

Read More ……