In this Lesson, we will illustrate how to fill the shapes with colors. In Visual Basic 2010, three methods are used to fill shapes are FillRectangle, FillEllipse, FillPolygon and FillPie.In order to fill the aforementioned shapes with color, we have to create the Brush object using the following syntax:
myBrush = New SolidBrush(Color.myColor)
Where 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 intelligence will display the colours and enter the period after the Color key word.
To learn the details, we suggest you grab a copy of Visual Basic 2010 Made Easy.
AUTHOR: DR. LIEW VOON KIONG
Visual Basic 2010 Made Easy is an eBook authored by the webmaster of our Visual Basic 2010 Tutorial, Dr.Liew. With more than 200 pages of contents, it complements our free online tutorial by providing a complete tutorial for beginners.
By reading this book, you can:
*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment.
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 contact:Admin