|
-
Dec 19th, 2008, 03:00 PM
#1
Thread Starter
Addicted Member
Resource List and Picturebox
Hi. I'm upgrading from vb2003 to 2008 so I need some help with code as I am rewriting my application. Thanks in advance.
My application has several images that I added to the resources folder. When the application starts, I previously had it so that i would automatically scan through the resource list and count the number of images, and thus create n number of picture boxes and in each picture box it would put one of the associated pictures from the resources. I can't figure out a method that would allow me to return an array or list of the available resources though. Any ideas on how I could generate such a list? Also how would I go about making an array of pictureboxes in this new version? Thanks a lot
John
-
Dec 19th, 2008, 09:42 PM
#2
Re: Resource List and Picturebox
you can't do a for loop with my.resources, but as you can't add anything to it outside of design mode, you'll know at design time what it contains - so you can write the necessary code to add your pictureboxes + display your pictures.
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
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
|
Click Here to Expand Forum to Full Width
|