Hi
I want to add a picture box that has the picture that is on the butten that was pressed. I want that a new pictureBox will appeer avary time I click the butten but in a different place. here is the code I got so far:
STATIC PUBLIC pics AS PictureBox
STATIC PUBLIC pic_num AS Integer
PUBLIC SUB _new()
END
PUBLIC SUB Form_Open()
pic_num = 0
END
PUBLIC SUB btnUp_Click()
'DIM pics AS NEW PictureBox[100]
DIM old_x AS Integer
DIM old_y AS Integer
DIM myPic AS Picture
myPic = btnUp.Picture
pics = NEW PictureBox(ME)
pics.Name = pic_num
pics.Border = 2
pics.Height = 38
pics.Width = 38
pics.x = old_x + 40
pics.y = old_y + 40
pics.Picture = myPic
old_x = pics.X
old_y = pics.Y
pic_num = pic_num + 1
END
the problem is that each time I click the butten, i get only one picture box at the same place.
Thanks
Arbel