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
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL