Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Experts*
Posted

Sounds like a plan; put the identifier number in the file name and

then you can check if it exists before loading it.

"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*
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...