eu tentei assim mais ta dando um erro:
QUOTE
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim aimg As New Microsoft.VisualBasic.Compatibility.VB6.PictureBoxArray
CType(aimg(1), System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
aimg(1).ImageLocation = "c:\jogo\mapa\f.png"
aimg(1).Location = New System.Drawing.Point(150, 22)
aimg(1).Name = "img"
aimg(1).Size = New System.Drawing.Size(48, 48)
aimg(1).SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize
aimg(1).TabIndex = 1
aimg(1).TabStop = False
Me.Controls.Add(aimg(1))
CType(aimg(1), System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Dim aimg As New Microsoft.VisualBasic.Compatibility.VB6.PictureBoxArray
CType(aimg(1), System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
aimg(1).ImageLocation = "c:\jogo\mapa\f.png"
aimg(1).Location = New System.Drawing.Point(150, 22)
aimg(1).Name = "img"
aimg(1).Size = New System.Drawing.Size(48, 48)
aimg(1).SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize
aimg(1).TabIndex = 1
aimg(1).TabStop = False
Me.Controls.Add(aimg(1))
CType(aimg(1), System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
mais ta dando esse erro: Control array element 1 doesn't exist.
me ajuda ai beleza
