In preceding lessons, we have learned how to draw rectangle, ellipse, circle, polygon and pie with outlines only. In this lesson, we will show you how to fill the shapes with color in Visual Basic 2019. Three methods that are used to fill shapes are FillRectangle, FillEllipse, FillPolygon, and FillPie. In order to fill the above shapes with color, we need to create the Brush object using the following syntax:
myBrush = New SolidBrush(Color.myColor)
*myColor can be any color such as red, blue, yellow and more. You don’t have to worry about the names of the colors because the IntelliSense will display the colors and enter the period after the Color keyword.
To learn the details of how to fill shapes with colors, we suggest you get a copy of VB2019 Handbook, authored by our tutor, Dr.Liew.
AUTHOR: DR. LIEW VOON KIONGVB2019 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:
*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment. If you have problem downloading the book, please contact
Mode of Delivery: Download
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.
If you require assistant and technical support, please email