Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create windows7-styled message/dialog boxes with command links in c#?

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?

like image 359
reaki Avatar asked Jun 25 '10 19:06

reaki


3 Answers

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.

like image 141
Hans Passant Avatar answered Oct 12 '22 01:10

Hans Passant


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.

like image 29
Greg D Avatar answered Oct 11 '22 23:10

Greg D


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.

like image 29
STO Avatar answered Oct 12 '22 01:10

STO