likewhoa 0 Newbie Poster

ok this generates the boxes. I have another set of pictureboxes and i was wondering how i would be able to move those pictureboxes to the pictureboxes that were generated based on the row,column, letters, direction(left,right,horizontal etc.) they pick

For i = 1 To 15
For j = 1 To 15
buttonnum = (j - 1) * 15 + i
mybutton = New System.Windows.Forms.PictureBox
mybutton.Location = New System.Drawing.Point(i * 30, j * 30)
mybutton.Name = "Button" & buttonnum

mybutton.Size = New System.Drawing.Size(30, 30)
mybutton.SizeMode = PictureBoxSizeMode.StretchImage
mybutton.Text = buttonnum
'mybutton.BackColor = Color.White
Select Case buttonnum
Case 1, 8, 15, 106, 120, 211, 218, 225
'mybutton.Image = Image.FromFile("tile00.jpg")

mybutton.Image = My.Resources.TripleWord
'mybutton.BackColor = Color.red
Case 4, 12, 37, 39, 46, 53, 60, 93, 97, 99, 103, 109, 117, 123, 127, 129, 133, 166, 173, 180, 187, 189
mybutton.Image = My.Resources.DoubleLetter
'mybutton.BackColor = Color.LightBlue
Case 21, 25, 77, 81, 85, 89, 137, 141, 145, 149, 201, 205
mybutton.Image = My.Resources.TripleLetter
'mybutton.BackColor = Color.Blue
Case 17, 29, 33, 43, 49, 57, 65, 71, 155, 161, 169, 177, 183, 193, 197, 209
mybutton.Image = My.Resources.DoubleWord
'mybutton.BackColor = Color.Pink
Case Else
mybutton.BackColor = Color.White


End Select
Me.Controls.Add(mybutton)

Next
Next