WinForms message box with textual buttons

大憨熊 提交于 2020-01-13 09:46:10

问题


Windows 7(?) introduced a new message box feature (I'm not sure what it is called so I've uploaded a picture). How can I create such a box in C# with WinForms?


回答1:


Here is a code project article: Task Dialog WinForms




回答2:


You can find all about it in MSDN.




回答3:


Hello there is a library with all vista and win7 dialogs:

http://www.ookii.org/software/dialogs/

The downside is that it requires full .Net not just client profile.




回答4:


As Hans Passant pointed out, the TaskDialog .NET API is provided by the Windows API Code Pack. There is an interesting article (German) about task dialogs and other functionality provided by the API.



来源:https://stackoverflow.com/questions/4342895/winforms-message-box-with-textual-buttons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!