tags:

views:

112

answers:

2

Using C# .NET (Winforms).

I want to know how can I show the message boxes with a Ding!! sound & a red colored cross mark in it. This is what I'm talking about:

alt text alt text

How to do such things for my software, with custom errors and custom warnings?

MessageBox.Show("asdf");

doesn't give me customize.

+2  A: 

Try this:

MessageBox.Show("asdf", "Some title", 
    MessageBoxButtons.OK, MessageBoxIcon.Error);
Andrew Hare
MSDN: Other icons you can use : http://msdn.microsoft.com/en-us/library/system.windows.forms.messageboxicon.aspx
claws
+1  A: 

MessageBox.Show("Argh","Critical Warning",MessageBoxButtons.OK,MessageBoxIcon.Error);

MSDN: Other icons you can use

PeanutPower