Visual Studio Windows Form button Image property

Hi

I am creating a fe buttons on a VS 2005 Windows form that include buttons that use
.gif files for their image porperty

Firstly is the best place to store these files in the Project Resource file?

Secondly how do you remove unwanted images from this area?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
 
Jeff CertainConnect With a Mentor Commented:
Use an image list. Add it to your form like any other control.

Add (or remove) images using the ImageList.Images property from the designer.

You can then use the ImageList and ImageKey or ImageIndex properties on the button to pick the image you wish to display on the button. Personally, I'd recommend using the key, since the index may change if you add/remove/reorder the images.
0
 
hatem72Connect With a Mentor Commented:


Firstly :
Sharing and inheriting ImageLists across multiple forms and controls :
http://www.codeproject.com/vb/net/SharedImageListsComponent.asp

Secondly :
Right Click The  Image then chose [ Exclude Or Delete ]
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thank you very much
0
 
hatem72Commented:

i am happy that i could help
0
 
Jeff CertainCommented:
Glad I could help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.