Pictures

Cassio

Junior Contributor
Joined
Nov 30, 2002
Messages
276
Location
Rio de Janeiro
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.
 
Sounds like a plan; put the identifier number in the file name and
then you can check if it exists before loading it.
 
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. :)
 
Back
Top