Solved

Close button in MessageBox

Posted on 2012-03-15
3
486 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

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.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
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…

776 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