With this the default is OK. Can I make the default Cancel?
MessageBoxResult result = MessageBox.Show
(message, caption, MessageBoxButton.OKCancel);
With this the default is OK. Can I make the default Cancel?
MessageBoxResult result = MessageBox.Show
(message, caption, MessageBoxButton.OKCancel);
Use this overload, which allows you to specify the default
MessageBoxResult
: