我使用System.Windows.MessageBox.Show()向用户显示一个对话框。一个重载允许我设置使用System.Windows.MessageBoxButton枚举显示的按钮。然而,它似乎缺乏一个RetryCancel选项,我的googling建议它应该有。
发布于 2010-04-16 09:57:09
你什么都没错过。有一个RetryCancel值:
MessageBox.Show("text", "caption", MessageBoxButtons.RetryCancel);注意:不要错误地使用WPF的MessageBoxButton枚举,它没有这样的值。
发布于 2010-04-16 10:02:53
System.Windows是WPF。System.Windows.Forms是WinForms。
https://stackoverflow.com/questions/2652001
复制相似问题