Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shapes control in vb.net

Tags:

vb.net

Is there anything like shapes control of VB 6.0, in Vb.Net? I need to draw lines etc. at design time. But I could not find any shapes control in the toolbox.

Thanks Furqan

like image 837
Furqan Sehgal Avatar asked Jan 04 '11 16:01

Furqan Sehgal


2 Answers

Microsoft released the free Microsoft Visual Basic Power Pack that contains Line and Shape controls that you can add to the tool box. A post here suggests it is included in VS2008 SP1 so you may already have it.

Alternatively you can create your own using a panel and override the onPaint event.

like image 93
John Avatar answered Oct 15 '22 07:10

John


no built in controls but you can easily achieve the same goal with some API calls: http://msdn.microsoft.com/en-us/library/bbw12xs4(v=VS.90).aspx

like image 41
Robert Levy Avatar answered Oct 15 '22 07:10

Robert Levy