views:

96

answers:

5

How to create these beautiful message/dialog boxes (example: http://i.msdn.microsoft.com/dynimg/IC123363.png) in C#?

Is there a function similar to MessageBox.Show in the .NET Framework?

A: 

DevExpress is a mature 3rd party windows form provider that is worth a look if you are interested.

Gnostus
A: 

You can make your own message windows form which appear what you want and show it with form show

MyMessageForm form = new MyMessageForm();
form.Show();
Millionbonus
+2  A: 

I always hesitate to provide a codeproject link, but I think you're trying to make a TaskDialog. There's also a project on code.msdn.microsoft.com that claims to provide the WinForms TaskDialog. A more reliable source of the TaskDialog is the Windows API Code Pack.

Be certain to provide an alternate message box if you need to support WindowsXP or older operating systems, Task Dialogs are new in Windows Vista.

Greg D
What's wrong with Code Project links? Or, why the hesitation. I think CP is a great resource. For me: CP + SO = bread + butter
Paul Sasik
CodeProject is very hit-or-miss when it comes to quality and correctness of solutions, in my experience. I've seen way too many articles on codeproject that do something fundamentally wrong or silly to trust it in the general case. There are some very high quality articles up there as well, but I've found them to be the exception, not the rule. The day I inherited a piece of production code that used http://www.codeproject.com/KB/cpp/colorprogressbar.aspx was a day I wanted to poke my eyes out.
Greg D
+5  A: 

It is a TaskDialog. It is wrapped in a managed class by the Windows API Code Pack. Lots of other Vista and Win7 specific goodies in there as well.

Hans Passant
+1  A: 

Take a look at http://code.msdn.microsoft.com/WindowsAPICodePack I'm not sure it contains feature you need, but it has feature named 'Windows Vista and Windows 7 Task Dialogs', maybe it is thing you looking for.

STO