Loading Bitmap From resource

  • Thread starter Thread starter Ivan Sammut
  • Start date Start date
I

Ivan Sammut

Hi,


Anyone can give me an example on how to load a bitmap from resource.


Thanks
Ivan
 
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(<your assemby>));

Image img =
((System.Drawing.Image)(resources.GetObject("keyToResource")))

Tasos
 

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