VB2019 VB2017 VB2015 VB2013 VB2012 VB2010 VB2008 VB6 VB Sample Code 中文VB About Us

Lesson 26: Drawing Polygon and Pie

We have learned how to draw rectangle, ellipse ,circle and text in the preceding chapters, now let's learn how to draw polygons on the screen. Besides that, we shall also learn how to draw pie.

26.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, we suggest you grab a copy of Visual Basic 2008 Made Easy.

Price: $15.00


VISUAL BASIC 2008 MADE EASY is an eBook written by our webmaster, Dr.Liew to complement our Online Visual Basic 2008 Tutorial. It has more contents than the free online tutorial.

Preview the book

By reading this book, you can:

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:

Sign up for PayPal and start accepting credit card payments instantly.

*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment.

Mode of Delivery: Download

Warmest Regards



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

Copyright©2008 Dr.Liew Voon Kiong. All rights reserved |Contact|Privacy Policy