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
 
Anyone can give me an example on how to load a bitmap from resource.

1) Launch your Internet browser (IE, FireFox, Netscape, Opera etc)

2) Navigate to http://www.google.com

3) Enter the following text in the box:

"C#" load bitmap resource

4) Hit the button
 
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