create many pictureboxes
I want to be able to create many pictureboxs with width and heigth supplieD
like this not sure how:
for i = 0 to 50
create picturebox(1) wid = 24 and height=25
Take a look at the Load statement or the Controls.Add method in VB's online help.
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Create one PictureBox at design time, and assign the Index to 1. That will create an array with one element.
At run time, you can create new picture boxes in the same array using the load method, that is
where k is the current index (> 1)
After the new picture box is loaded, you have to move it in the form in the position you want and assign the Visible property to True
BTW what is that for? The Picture box takes a lot of resources
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center