.NET 2.0 and toolbar icons

A

A.M-SG

Hi,



Using visual studio 2005 and .NET 2.0, when I right click on a toolbar strip
and choose "Insert Standard Items", the IDE adds standard buttons and icons
to the toolbar. So far everything is cool.



Now, I tried to fin where the added ICONS comes from, no clue!. The only
thing that I could find is the following line in the designer generated
code:



this.saveToolStripButton.Image =
((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image")));



I searched google and MSDN for "saveToolStripButton.Image" to see what is it
and where it comes from, still no clue.



Could you explain where "saveToolStripButton.Image" comes from and is there
any place to list all embedded images within framework?



Any help would be appreciated,

Alan
 
P

Phil

Hi,
I have the same problem and would love to know the answer! I simply want to
add a delete button at this stage!

Regards,
Phil
 
K

Keith Elder

Phil said:
Hi,
I have the same problem and would love to know the answer! I simply want to
add a delete button at this stage!

Regards,
Phil

I've wondered the same thing. I think the icons are embedded in source
code but I'm not sure. If someone knows, PLEASE answer this thread :)
 
J

Jeffrey Tan[MSFT]

Hi,

Thanks for your post.

Yes, these images are embeded in the Form1.resx file. You can open
Form1.resx with default resource editor, then you will see these images.
For more information regarding resource in .Net Winform, please refer to
the article below:
"Microsoft .NET Framework Resource Basics"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/htm
l/winforms02202003.asp

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
P

Phil Williams

Thanks for that, it gave me a better insight into how it works.
I guess what I was after was the actual standard icons that are not included
in the ms standard icons. ie the delete bitmap, and the print preview bitmap
etc.

I dont suppose you know where I can get these?

Thanks in advance,
Phil
 
J

Jeffrey Tan[MSFT]

Hi,

I am not sure about which specific icon you wanted. Based on my experience,
most of the icons are embeded as Win32 resources in corresponding dll or
exe file. You may use VS.net IDE to open these dll/exe PE file. Then you
will get all the resource embeded in it. Some icons can be loaded with
LoadIcon API, please refer to:
"Find Icons, Launch an App from List Control, and More"
http://msdn.microsoft.com/msdnmag/issues/03/03/CQA/default.aspx

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
P

Phil Williams

Thanks for that, I have them now as you said, they are in the resources
file.

Phil
 
C

Chuck

They are in:
C:\Program Files\Microsoft Visual Studio
8\Common7\VS2005ImageLibrary\VS2005ImageLibrary
 

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

Top