Learn how to a build a cloud-first strategyRegister Now


MessageBox Icon C#

Posted on 2009-04-22
Medium Priority
Last Modified: 2013-12-17
Hi I'm using Visual C# 2008 and was wondering how to use the MessageBox Icons listed in the MessageBox Functions.
I tried "MessageBox.Show("Export Canceled", MB_ICONERROR);" but it's undefined.
How can I use them as simple as possible?
Question by:csharp_learner
LVL 18

Accepted Solution

philipjonathan earned 1200 total points
ID: 24211117
MessageBox.Show("Export Canceled", "Error", MessageBoxButtons.OK,  MessageBoxIcon.Error);

Author Closing Comment

ID: 31573609
Thanks,exactly what I was looking for.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 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