MessageBox Icon C#

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?
csharp_learnerAsked:
Who is Participating?
 
philipjonathanCommented:
Try:
MessageBox.Show("Export Canceled", "Error", MessageBoxButtons.OK,  MessageBoxIcon.Error);
0
 
csharp_learnerAuthor Commented:
Thanks,exactly what I was looking for.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.