| Start |
|---|
| Create Graphic Object There are three ways to create a graphics object
Every time the control is redrawn (resized, refreshed...) this event is called, use this way if you want the control to consistently draw on the control
This is most often used when you want to create a one time graphic on the control, or you don't want the control to repaint itself
Use this method when you want to draw and change an existing graphic |
| Draw Shapes To start drawing a shape you need to define a pen object
The
The Pen Object is used to create an outline of the object you want to draw After Defining the Pen you can set specific Pen Properties Then use the graphics object you created to draw the shape By default, the pen's width is equal to 1 |
| Fill Shapes Graphics.FillShapes draws a shape and fills it in with the color given. Fill Shapes can use You can choose a picture from resources, an already defined Bitmap, or from a file name Both the |
| Text To draw text onto the form use the When you draw a string you can use any of the 4 brushes listed above Since you can't define the width or height of the text use Ex: You need to draw the word "Test" on top of the form. The form's width is 120. Use this loop to decrease the font size till it will fit into the forms width |
Read Article
https://develop.horje.com/learn/1434/reference