GamesRule
03-18-2004, 11:37 AM
Hey
How the heck do you draw lines in .Net?
I tried:
Dim MyGraphics As Graphics
Dim myPen As New Pen(Color.Blue, 2)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
myPen.DashStyle = Drawing2D.DashStyle.Dash
MyGraphics.DrawLine(myPen, 0, 0, 100, 0)
End Sub
How the heck do you draw lines in .Net?
I tried:
Dim MyGraphics As Graphics
Dim myPen As New Pen(Color.Blue, 2)
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
myPen.DashStyle = Drawing2D.DashStyle.Dash
MyGraphics.DrawLine(myPen, 0, 0, 100, 0)
End Sub