I am new to .net. Just trying to make a line move across the screen. What is the best way to pause between moving the line segement. In the old days we just used a loop and counted to a large number. Like....
Dim x1, x2 As Integer
Dim chg As Integer ' amount of change
Dim c As Long 'counter
chg = 2
x1 = 1
x2 = 2
c = 1
Do While x2 < 400
e.Graphics.DrawLine(Pens.Black, x1, 25, x2, 25)
e.Graphics.DrawLine(Pens.LightGray, x1 - chg, 25, x2 - chg, 25)
x1 = x1 + chg
x2 = x2 + chg
Do While c < 10000000
c = c + 1
Loop
c = 1
Loop
I figure there has to be a newer method...
Thanks
Uncle Mike
Dim x1, x2 As Integer
Dim chg As Integer ' amount of change
Dim c As Long 'counter
chg = 2
x1 = 1
x2 = 2
c = 1
Do While x2 < 400
e.Graphics.DrawLine(Pens.Black, x1, 25, x2, 25)
e.Graphics.DrawLine(Pens.LightGray, x1 - chg, 25, x2 - chg, 25)
x1 = x1 + chg
x2 = x2 + chg
Do While c < 10000000
c = c + 1
Loop
c = 1
Loop
I figure there has to be a newer method...
Thanks
Uncle Mike