[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1038
  • Last Modified:

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?
0
Murray Brown
Asked:
Murray Brown
  • 2
  • 2
2 Solutions
 
Jeff CertainCommented:
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
 
hatem72Commented:


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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now