Drawing network diagram

  • Thread starter alphatommy_at_hotmail_dot_com
  • Start date
A

alphatommy_at_hotmail_dot_com

Hi,

I am using DrawEllipse and DrawLine to draw a rough network diagram.
Are there better/easier ways to do that? Also, how would one draw an
arrow? thanks.
 
G

Guest

I prefer Visio, but if you want to roll your own, this seems fine!

Drawing the arrow should be simple. You know the end point where you want
the arrow end. Just draw two segments at 45 degree angles from where you
ended.
 
C

Chris Dunaway

Hi,

I am using DrawEllipse and DrawLine to draw a rough network diagram.
Are there better/easier ways to do that? Also, how would one draw an
arrow? thanks.

To draw an arrow you can add an arrow style to the Pen you create to
draw the line:

Using p As New Pen(Color.Black, 3)

p.Color = Color.Red
p.StartCap = Drawing2D.LineCap.RoundAnchor
p.EndCap = Drawing2D.LineCap.ArrowAnchor

g.DrawLine(p, startpoint, endpoint) //startpoint and endpoint
created elsewhere

End Using

Chris
 

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