Question Square, rectangular shapes and line control

black zero

Well-known member
Joined
Jan 15, 2009
Messages
53
Programming Experience
Beginner
- There is no shape control in Visual Basic 2005. Square and rectangular shapes will be upgraded to labels, while ovals and circles cannot be upgraded. You should avoid using these in your applications.

- There is no line control in Visual Basic 2005. Horizontal and vertical lines are upgraded to labels. Diagonal lines are not upgraded, and you should avoid using them.
===

That was taken from MSDN while I was searching why there's no such things on .NET. Now if I want to mimic them, which controls should I use?
 
In VB.NET you have GDI+ at your disposal, which means you can draw just about anything on your forms or controls but you must do it in code rather than in the designer. Microsoft realised that many people, especially beginners, found this a chore for simple shapes like lines, rectangles and ellipses. As such they released some shape controls as part of the VB Power Packs. You can download and install the VB PP and then use the shape controls from the Toolbox like other controls.

Microsoft Visual Basic Power Packs 3.0
 
Back
Top