hey all,
im having a problem drawing some pictureboxes ontop of frames. i want there to be a line drawn vertically over a frame every 720 units (pixels or twips, dont quite know how its measured). it does that with one exception, the picture box floats over only frame1(2-6), not the first one. heres my code, if anyone can point out what im doing wrong thatd be awesome. thanx in advance.
attached is a bmp of the form.
note: i took some unimportant code out for clarity.
VB Code:
For cnt1 = 1 To 6 Load Frame1(cnt1) Frame1(1).Top = 100 Frame1(cnt1).Move 100, Frame1(cnt1 - 1).Top + 500, 15000, 500 Frame1(cnt1).Visible = True For i = 1 To 20 Load Option1(Option1.ubound + 1) If cnt1 = 1 Then Load line1(i) line1(i).Visible = True End If Option1(Option1.ubound).Visible = True Set Option1(Option1.ubound).Container = Frame1(cnt1) Next i Next cnt1 For cnt1 = 1 To 6 Option1(((cnt1) * 20) - 19).Value = True For i = 1 To 20 If cnt1 = 1 Then line1(i).Left = i * 720 + 400 line1(i).Width = 15 line1(i).Top = 0 line1(i).Height = 4000 End If Next Next




. heres my code, if anyone can point out what im doing wrong thatd be awesome. thanx in advance.
Reply With Quote