Hi,
I'm facing a weird problem. I want to draw 15 pictureboxes in a horizontal line. I created an array of 15 boxes and in a loop, I assign it a picture and I set the location. Then I add the box to the form.
	Now, the problem is in the picLucifer(a).L  ocation = New Point(20, b) row. When I assign a fixed value to the X and let the Y be a variable, everything is fine. I get a vertical list of 15 pictures. However, when I switch the X and the Y, so the X as variable and the Y fixed, it just shows me one picture. So,
	works, but
	doesn't work. Does anyone have an idea why?
Thanks!
Steven
					I'm facing a weird problem. I want to draw 15 pictureboxes in a horizontal line. I created an array of 15 boxes and in a loop, I assign it a picture and I set the location. Then I add the box to the form.
Code:
	Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim a, b As Integer
        Dim picLucifer(14) As PictureBox
        b = 1
        For a = 0 To 14
            picLucifer(a) = New PictureBox()
            picLucifer(a).Image = My.Resources.middlefinger
            picLucifer(a).Location = New Point(20, b)
            picLucifer(a).Visible = True
            b = b + 50
            Me.Controls.Add(picLucifer(a))
        Next
    End Sub
Code:
	picLucifer(a).Location = New Point(20, b)
Code:
	picLucifer(a).Location = New Point(b, 20)
Thanks!
Steven
Comment