Results 1 to 12 of 12

Thread: Drawing pictureboxes over frames[resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member MET777's Avatar
    Join Date
    Apr 2005
    Posts
    76

    Resolved Drawing pictureboxes over frames[resolved]

    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:
    1. For cnt1 = 1 To 6
    2.     Load Frame1(cnt1)
    3.     Frame1(1).Top = 100
    4.     Frame1(cnt1).Move 100, Frame1(cnt1 - 1).Top + 500, 15000, 500
    5.     Frame1(cnt1).Visible = True
    6.            For i = 1 To 20
    7.             Load Option1(Option1.ubound + 1)
    8.             If cnt1 = 1 Then
    9.                 Load line1(i)
    10.                 line1(i).Visible = True
    11.             End If
    12.             Option1(Option1.ubound).Visible = True
    13.             Set Option1(Option1.ubound).Container = Frame1(cnt1)
    14.         Next i
    15. Next cnt1
    16.  
    17. For cnt1 = 1 To 6
    18.     Option1(((cnt1) * 20) - 19).Value = True
    19.     For i = 1 To 20
    20.         If cnt1 = 1 Then
    21.             line1(i).Left = i * 720 + 400
    22.             line1(i).Width = 15
    23.             line1(i).Top = 0
    24.             line1(i).Height = 4000
    25.         End If
    26.     Next
    27. Next
    Last edited by MET777; May 29th, 2005 at 10:16 AM.
    --Matt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width