Display a close icon on a button

Posted on 2009-02-20
Medium Priority
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
  • 3
  • 2
LVL 19

Accepted Solution

daveamour earned 1000 total points
ID: 23698645
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

ID: 23698659
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

ID: 23698665
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

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

Author Closing Comment

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

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month16 days, 18 hours left to enroll

862 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