Visual Studio Windows Form button Image property

Posted on 2006-04-29
Last Modified: 2012-06-21

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?
Question by:murbro
    LVL 24

    Accepted Solution

    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.
    LVL 6

    Assisted Solution


    Firstly :
    Sharing and inheriting ImageLists across multiple forms and controls :

    Secondly :
    Right Click The  Image then chose [ Exclude Or Delete ]

    Author Comment

    Thank you very much
    LVL 6

    Expert Comment


    i am happy that i could help
    LVL 24

    Expert Comment

    by:Jeff Certain
    Glad I could help.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now