'Add a line control with index=0 in a picturebox
Private Sub Command1_Click()
Dim i As Integer
On Error Resume Next
For i = 0 To 100
Load Line1(i)
Line1(i).Visible = True
Line1(i).X1 = 100
Line1(i).X2 = 2900
Line1(i).Y1 = i * 60
Line1(i).Y2 = i * 60
Next
End Sub
Private Sub Form_Load()
Picture1.Move 0, 0, 3000, 6000
End Sub