I am creating lots of PictureBox's on my Form but they will not display. I have tried to debug it to see if its trying to show in the wrong location and stuff like that however everything seems to be correct. I have tried to call Show() but that did nothing either. I used to be experienced with VB quite a while ago but fell out and forget a lot of the stuff.
Yes, I am calling it with createPixels(0)
Private Sub createPixels(layer As Integer)
For i As Integer = 0 To 255
For j As Integer = 0 To 255
Dim pb As PictureBox = New PictureBox()
Dim loc As Point = New Point()
pb.Size = New Size(1, 1)
pb.BackColor = Color.FromArgb(j, i, layer)
loc.X = j + (1 + layer)
loc.Y = 25 + i + (1 + layer)
pb.Location = loc
loc = Nothing
Next
Next
End Sub