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

Lesson 27 Drawing Rectangles


There are two methods to draw a rectangle on the form in Visual Basic 2015.

Method 1

Draw a rectangle directly using the DrawRectangle method by specifying its upper-left corner’s coordinate and its width and height. You also need to create a Graphics and a Pen object to handle the actual drawing. The method of the Graphics object to draw the rectangle is DrawRectangle.

Method 2

The second method is to create a rectangle object first and then draw this rectangle using the DrawRectangle method.

To learn the details of drawing rectangles, we suggest you grab a copy of Visual Basic 2015 Made Easy.

Price: $25.00

AUTHOR: DR. LIEW VOON KIONG

Visual Basic 2015 Made Easy is written by Dr. Liew, the webmaster of our popular online Visual Basic Tutorial, vbtutor.net. This book is a complete guide to mastering Visual Basic 2015, from beginner to intermediate programmers.  This book has been written to complement our free online Visual Basic 2015 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 2015 programming
  2. Create your own Visual Basic 2015 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:

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

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

Admin




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