|
-
Dec 30th, 2006, 09:56 AM
#1
Thread Starter
Fanatic Member
[Resolved] Array Picturebox Not loading???
VB Code:
Const Area_ = 225
Public Sub Create_Edit_Map(X_Area As Integer, Y_Area As Integer, Fill_Area As String)
Dim X_ As Integer
Dim Y_ As Integer
Y_ = 0
X_ = 0
Do Until X_ = X_Area
X_ = X_ + 1
Load Map_Edit.Map(X_ + Y_)
Map_Edit.Map(X_ + Y_).Left = (Map_Edit.Map((X_ - 1) + Y_).Left + Area_)
MsgBox X_ + Y_ & " | " & Map_Edit.Map(X_ + Y_).Left
Loop
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.
-
Dec 30th, 2006, 10:00 AM
#2
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
-
Dec 30th, 2006, 10:01 AM
#3
Thread Starter
Fanatic Member
Re: Array Picturebox Not loading???
I'm such a noob, the solution was in the question.... You were right, LOL.
-
Dec 30th, 2006, 10:48 AM
#4
Hyperactive Member
Re: Array Picturebox Not loading???
 Originally Posted by Slyke
LOL.
Many of you who are good in English write 'lol'. What is that?
-
Dec 30th, 2006, 10:54 AM
#5
Re: [Resolved] Array Picturebox Not loading???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|