Learn C# (C sharp) in FREE step-by-step lessons.
Unit III: User Interface

C# has extensive drawing capabilities.
While you could draw a happy face with the drawing methods, by far, the most useful application is to draw charts and graphs.
The goal of this lesson is to learn to use drawing methods to create drawings and graphs.
- Be able to define and use the pen;
- Be able to define and use the brush;
- Combine graphic elements to create a variety of shapes;
- Be able to create a variety of graphs from user data using graphics tools
Please study the material at each of the links below.
Microsoft Reference: C# Drawing Graphics- Drawing Lines with the Pen
- Drawing Rectangles with the Brush
- Drawing Filled Circle with Border
- Drawing Filled Polygon with Border
- Drawing Strings
- Drawing Images
- Bezier Curves: A Bézier curve is a parametric curve used in computer graphics.
- Drawing Pie
- Drawing Pie with 2 Scroll Bars
- Draw pie graph for Budget
- About Graphs
- Bar Graph for Sales
A drawing program with other brushes: A brush is used to draw solid shapes. A pen is used to draw outlines
Glossary for Drawing Methods in C#
Full Glossary