Results 1 to 5 of 5

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

  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.

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Array Picturebox Not loading???

    all controls loaded at runtime initially have .Visible set to False, you have to set Visible to True yourself, and also correctly position the control

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: Array Picturebox Not loading???

    I'm such a noob, the solution was in the question.... You were right, LOL.

  4. #4
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Jar, Norway
    Posts
    372

    Re: Array Picturebox Not loading???

    Quote Originally Posted by Slyke
    LOL.
    Many of you who are good in English write 'lol'. What is that?

  5. #5

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