tags:

views:

266

answers:

1

I followed the trail of the ToolstripMenu in designer to the following line:

(System.Drawing.Bitmap) new System.ComponentModel.ComponentResourceManager(typeof(FormMain)).GetObject("saveToolStripButton.Image")

I can duplicate that and use it my form code as long as the toolstripMenuItem is on the form. Is it possible to access these icons directly instead of having to add a Toolstrip and its standard items?

+2  A: 

Assuming you're using visual studio, the icons are available for your use in the following location C:\Program Files\Microsoft Visual Studio 9.0\Common7\VS2008ImageLibrary

If VS 2005 change 9.0 to 8

Conrad
I see the save icon in there, in a PNG with various sizes, Do I need to store exact coordinates of the particular size I want to use or is there a better way?
Maslow
How do you want to use them? For toolstrips?
Conrad
menu items, or toolstripmenu items,etc..
Maslow
Most controls should be able to handle the PNGs and re size as appropriate to their needs. You can use them as is
Conrad
no I mean I found that has the image I want,but it is in a PNG of the icon in all the different sizes.
Maslow