Results 1 to 5 of 5

Thread: [Resolved] Array Picturebox Not loading???

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    [Resolved] Array Picturebox Not loading???

    VB Code:
    1. Const Area_ = 225
    2.  
    3. Public Sub Create_Edit_Map(X_Area As Integer, Y_Area As Integer, Fill_Area As String)
    4.  
    5. Dim X_ As Integer
    6.  
    7. Dim Y_ As Integer
    8.  
    9. Y_ = 0
    10.  
    11. X_ = 0
    12.  
    13. Do Until X_ = X_Area
    14.  
    15. X_ = X_ + 1
    16.  
    17. Load Map_Edit.Map(X_ + Y_)
    18.  
    19. Map_Edit.Map(X_ + Y_).Left = (Map_Edit.Map((X_ - 1) + Y_).Left + Area_)
    20.  
    21. MsgBox X_ + Y_ & " | " & Map_Edit.Map(X_ + Y_).Left
    22.  
    23. Loop
    24.  
    25. End Sub


    The msgbox correctly shows that the picture boxes do exist... however they don't show up on the form! I've checked if they are invisible and it's false... Their top is set to 0.

    Also this is being called from a module... would that be the cause of this?

    I'm trying to create a grid of picture boxes for a snake game im making.
    Last edited by Slyke; Dec 30th, 2006 at 10:02 AM.

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