Im using System.Windows.MessageBox.Show()
to display a dialog to the user. One overload lets me set the buttons that appear using the System.Windows.MessageBoxButton
enum. However, it seems to lack a RetryCancel
option that my googling suggests it should 开发者_JS百科have.
- Am I missing something?
- How do I display a RetryCancel messagebox?
You aren't missing anything. There's a RetryCancel value:
MessageBox.Show("text", "caption", MessageBoxButtons.RetryCancel);
Remark: Do not mistake with WPF's MessageBoxButton enumeration which doesn't have such value.
System.Windows
is WPF. System.Windows.Forms
is WinForms.
精彩评论