Display a close icon on a button

Posted on 2009-02-20
Last Modified: 2013-12-17

I am developing a windows application.I want to show a button as standard close button which has cross in red background.

Can I have it without setting image to button?
Question by:rajputamitd
    LVL 19

    Accepted Solution

    You could certainly put an X for the text, tinker with the font, set the font colour to white and the back colour to red but I guess you are looking for an exact match right?

    Author Comment

    Yes.It should look exactly like Close button..
    Any other idea.Or I have to set image to button,that;s it?
    LVL 19

    Expert Comment

    I'm not aware of any other method but that doesn't mean there isn't one so maybe just wait and see if anyone else posts anything.

    Author Comment

    Thanks daveamour.
    For now I have set the Button's image property.
    Lets see if anyone has any idea.

    Author Closing Comment

    Hi daveamour.I am closing this question.Thanks for ur help

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video discusses moving either the default database or any database to a new volume.

    754 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

    17 Experts available now in Live!

    Get 1:1 Help Now