By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,464 Members | 1,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,464 IT Pros & Developers. It's quick & easy.

Loading Bitmap From resource

P: n/a
Hi,
Anyone can give me an example on how to load a bitmap from resource.
Thanks
Ivan

May 20 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Ivan Sammut" <sa*****@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP05.phx.gbl...
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
May 20 '06 #2

P: n/a
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(<your assemby>));

Image img =
((System.Drawing.Image)(resources.GetObject("keyTo Resource")))

Tasos

May 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.