First of all I DON'T want to use a custom control
I have a picture box with a line in it
I want an array of picture boxes with one line control in each
when I load a new picture box and then a line control, the new line control is loaded into the first picture box
How can I load a new line into the new picturebox?Code:Private Sub Command1_Click()
Dim i As Integer
i = Picture1.Count
Load Picture1(i)
Picture1(i).Visible = True
Picture1(i).Top = Picture1(i - 1).Top + Picture1(0).Height
Load Line1(i)
Line1(i).Visible = True
'move teh new line a bit so you can see it
Line1(i).Y1 = Line1(i - 1).Y1 + 10
Line1(i).Y2 = Line1(i - 1).Y2 + 10
End Sub
