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:
  1. Private Sub Command1_Click()
  2. For q = 1 To 10
  3. Cls
  4. For i = 0 To 255 Step 2
  5.   Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
  6.   DoEvents
  7. Next
  8. For i = 0 To 255 Step 2
  9.   Line (i, i)-(i + i, i + i), vbBlack, B
  10.   DoEvents
  11. Next
  12. Cls
  13. For i = 255 To 0 Step -2
  14.   Line (i, i)-(i + i, i + i), RGB(0, 0, i), B
  15.   DoEvents
  16. Next
  17. For i = 255 To 1 Step -2
  18.   Line (i, i)-(i + i, i + i), vbBlack, B
  19.   DoEvents
  20. Next
  21. Next
  22. End Sub

I don't like you martin.