Disable close button in MessageBox.Show

How can I disable the close button (the [x] button on top right corner) in MessageBox.Show?
I've checked through MSDN help on it, there is no overloaded method that does that, it seems. But I just want to be sure. Any idea for workaround?
LVL 18
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Not possible, as far as I know...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
anarki_jimbelSenior DeveloperCommented:
You may write your own "messagebox" - pretty simple
anarki_jimbelSenior DeveloperCommented:
You may also try:


see the "Disabling the Close button" section
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

anyoneisSoftware DeveloperCommented:
Actually, try specifying a set of buttons that does not include "Cancel", as in:
       private void button1_Click(object sender, EventArgs e)
            MessageBox.Show("Does the emperor have close?", "The Emperor",
In VS 2008, at least (.NET 3.5 SP1) the "x" is disabled.
philipjonathanAuthor Commented:
Thanks all for the input! I'll accept anarki for the link to interesting article.
philipjonathanAuthor Commented:
Oops, I'm sorry I clicked the wrong link, and accepted the learned one's comment instead. I hope none of you mind, otherwise I'll try to raise a request to mods
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.