How to Draw a Rectangle in VB.Net
- 1). Start the Visual Basic application from the list of applications available at the "Start" icon, which is located on the Windows taskbar.
- 2). Press the "Control" and "N" keys concurrently to open a new VB.Net project. Select the "Windows Forms Application" option, and then click the "OK" button.
- 3). Double-click the "RectangleShape" icon located in the "Tool Box" window pane under the "Visual Basic PowerPacks" category. This will display a rectangle control in "Form1."
- 4). Click on the rectangle icon, and drag the rectangle to the position desired in the "Form1" window.
- 5). Press the "F5" key to start the application in the debug execution mode, displaying the rectangle shape in "Form1."
Source...