' Create a Graphics object from the picture box & clear it.
' Find the Size required to draw the Sample Text.
' Draw the main text.
The above example requires a textbox and picturebox controls on the form. Code creates the objects of the Fontconverter and Font classes. We initialize the graphics object from the CreateGraphics() method and in the last we are using the Graphics.DrawString() method to draw the text of the textbox control on the picturebox.