# Lesson 30 Drawing Polygon & Pie

We have learned how to create the Graphics and the Pen objects to draw rectangle, ellipse, circle, and text in the preceding lessons, now we shall learn how to draw polygons and pie in Visual basic 2019.

### 30.1: Drawing Polygons

Polygon is a closed plane figure bounded by three or more straight sides. In order to draw a polygon on the screen, we need to define the coordinates of all the points (also known as vertices) that joined up to form the polygon. The syntax to define the points of a polygon with vertices A1,A2,A3,A4…….An is as follows;

```Dim A1 As New Point(X1,Y1)Dim A2 As New Point(X2,Y2)Dim A3 As New Point(X3,Y3)
Dim A4 As New Point(X4,Y4)
.
.
Dim An as New Point(Xn,Yn)
```

To learn the details of drawing polygons, we suggest you get a copy of VB2019 Handbook, authored by our tutor, Dr.Liew

Price: \$50.00

AUTHOR: DR. LIEW VOON KIONG

VB2019 Handbook is written by Dr. Liew, the webmaster of our popular online Visual Basic Tutorial, vbtutor.net. This book is a concise guide to learning Visual Basic 2019 for beginners..  This book has been written to complement our free online Visual Basic 2019 tutorial with much more content. It is also an excellent reference text for high school or college-level computer science courses.  Reading this book will allow you to:
1. Understand the basic concepts of Visual Basic 2019 programming
2. Create your own Visual Basic 2019 applications from scratch
3. Get inspiration from a variety of interesting sample programs
4. Modify the code samples easily to suit your needs
5. Learn how to package and distribute your applications

Preview the Book

You need PayPal account to order this E-book. If you don't have PayPal Account, get your PayPal account by clicking the banner below:

Warmest Regards

(Dr.Liew)

Disclaimer

This site and the products and services offered on this site are not associated, affiliated, endorsed, or sponsored by Microsoft, nor have they been reviewed tested or certified by Microsoft.

Contact Information

If you require assistant and technical support, please email