Drawing

B

Boo K.M.

I think I have come to a problem once or twice before.
In VB6, we have Shape to draw lines and rectangle/triangle stuffs, but how
do we do that in VB.NET? I don't know if I missed any Toolbox there, but
just simply couldn't find.

Boo K.M.
 
H

Herfried K. Wagner [MVP]

Boo K.M. said:
I think I have come to a problem once or twice before.
In VB6, we have Shape to draw lines and rectangle/triangle stuffs, but how
do we do that in VB.NET? I don't know if I missed any Toolbox there, but
just simply couldn't find.

Handle the form's 'Paint' event and draw the shapes there
('e.Graphics.{Draw*, Fill*}').
 
B

Bob Powell [MVP]

Check out the GDI+ FAQ and particularly the Beginners Guide to GDI+

Both on my site.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
F

Frank Hileman

There are also commercial libraries that perform this task far better than
the old Shape classes.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
 
B

Boo K.M.

OK, thank you everyone.
I just want to know the answer and it is enough now (library - 3rd party,
code).
Normally now whenever I want to draw separator (3D lines), I just use frame
or (what's it called now?) without caption (yeah, text property, in VB.NET),
and size it properly to have gray and white line side by side.

Just a quick way.
I don't think drawing with code is efficient in the first place, such as one
I am encountering now, drawing tables in RTF document with
code......Somebody else please do the dirty job for me......

Boo K.M.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top