Results 1 to 2 of 2

Thread: Resource List and Picturebox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    181

    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

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width