How to read from resouce file.

  • Thread starter Thread starter Vaibhav
  • Start date Start date
V

Vaibhav

Hi..

I want to get name of an image file from a resource file. Can anyone help me
out...
 
Well, the original name of the file isn't there (AFAIK); a resx is
(broadly) a series of key/stream pairs (for images, at least); the
key, however, is a munged form of the original name; probably missing
the extension, and with various character swaps. If you want to
enumerate the resx, then ResourceManager (and GetResourceSet(), IIRC)
is a good starting point.

Marc
 
hi use this one
pictureBox1.Image = Hi.Properties.Resources._6a;

format is like
ProjectNamei.Properties.Resources.Imagename(which u have assigned in
resource file);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top