I don't like my threads being moved.
Can anyone give me suggestions on how to optimize this, and what I can use it for??
Plop this code on a form with a black background, autoredraw set to true, and a command button called command1.
VB Code:
Private Sub Command1_Click()
For q = 1 To 10
Cls
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Cls
For i = 255 To 0 Step -2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 255 To 1 Step -2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Next
End Sub
:mad: I don't like you martin.
Re: I don't like my threads being moved.
Quote:
Originally posted by MidgetsBro
Can anyone give me suggestions on how to optimize this, and what I can use it for??
Plop this code on a form with a black background, autoredraw set to true, and a command button called command1.
VB Code:
Private Sub Command1_Click()
For q = 1 To 10
Cls
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 0 To 255 Step 2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Cls
For i = 255 To 0 Step -2
Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
DoEvents
Next
For i = 255 To 1 Step -2
Line (i, i)-(i + i, i + i), vbBlack, B
DoEvents
Next
Next
End Sub
:mad: I don't like you martin.
what do u mean by optimize this...I can only see something like small flame in the top left corner...
What exactly u r looking for...