[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.
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
Re: Array Picturebox Not loading???
I'm such a noob, the solution was in the question.... You were right, LOL.
Re: Array Picturebox Not loading???
Quote:
Originally Posted by Slyke
LOL.
Many of you who are good in English write 'lol'. What is that?
Re: [Resolved] Array Picturebox Not loading???