Cassio Posted April 15, 2003 Posted April 15, 2003 Hi! I have to use some pictures in my app and I dont know the best way to store them. I was thinking about an imagelist but the pictures must have an identifier, which is the number of the current question. If the current question number is 57, I´ll show picture 57, but not all questions have a picture so I cant use the index to call them. Maybe the best way is to store them on a folder and call them from there. What do you think? Thanks for the help. Quote Stream of Consciousness (My blog)
*Experts* Bucky Posted April 15, 2003 *Experts* Posted April 15, 2003 Sounds like a plan; put the identifier number in the file name and then you can check if it exists before loading it. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
*Experts* Volte Posted April 15, 2003 *Experts* Posted April 15, 2003 If you develop a custom Name/Image collection control/component (like a custom imagelist), and then use the built in collection editor to add the pictures (the ones without pictures would have Nothing for the Picture property), then the picture will be stored in the form's internal XML resource file. You won't have to worry about dependency that way. There is documentation in the MSDN about developing components and using collections, etc. If you prefer to do this without dependency, then I suggest you get reading. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.