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
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.