-
create many pictureboxes
Hi ,,,
Using vb6
I want to be able to create many pictureboxs with width and heigth supplieD
Example:
like this not sure how:
for i = 0 to 50
create picturebox(1) wid = 24 and height=25
next
-
Take a look at the Load statement or the Controls.Add method in VB's online help.
Phil Weber
http://www.philweber.com
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
Load myPicture(k)
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
Marco
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks