Solved

Close button in MessageBox

Posted on 2012-03-15
3
487 Views
Last Modified: 2012-03-20
How do I get a "Close" button in MessageBox?
In this;
            MessageBox.Show("My text", "My C# Experiment", MessageBoxButtons.OK);
The button is "OK", but I would like "Close:
0
Comment
Question by:allelopath
3 Comments
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 167 total points
ID: 37725137
You can't just override.  What you can do is create your own form which similiarly does the same thing and then call as ShowDialog.

http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/1086b27f-683c-457a-b00e-b80b48d69ef5
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 167 total points
ID: 37725167
a long time ago, I wrote an article on building a custom messagebox: http://www.emoreau.com/Entries/Articles/2006/01/A-custom-MessageBox.aspx
0
 
LVL 14

Assisted Solution

by:systan
systan earned 166 total points
ID: 37725393
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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