Changes

Jump to: navigation, search

Drawing Graphics in C Sharp

7 bytes added, 16:52, 30 January 2008
Creating a Graphics Object
The first step in this tutorial is to create a new Visual Studio project called CSharpGraphics. With the new project created select the Form in the design area and click on the lightning bolt at the top of the ''Properties'' panel to list the events available for the Form. Double click the ''Paint'' event to display the code editing page.
Graphics Objects are created by calling the ''CreateGraphics()'' method of the component on which the drawing is to performed. For example, a Graphics Object can be created on our Form called Form1 by calling ''CreateGraphics()'' method as follows in the Paint()method:
<pre>

Navigation menu