Drawing network diagram

  • Thread starter Thread starter alphatommy_at_hotmail_dot_com
  • Start date 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.
 
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.
 
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
 
Back
Top