Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More MessageBox buttons #5795

Open
danielchalmers opened this issue Dec 8, 2021 · 2 comments
Open

More MessageBox buttons #5795

danielchalmers opened this issue Dec 8, 2021 · 2 comments

Comments

@danielchalmers
Copy link

WinForms already had more buttons available for their MessageBox and dotnet/winforms#4746 adds more.

Buttons

System.Windows.MessageBoxButton

  • OK
  • OKCancel
  • YesNo
  • YesNoCancel

System.Windows.Forms.MessageBoxButtons

  • AbortRetryIgnore
  • CancelTryContinue
  • OK
  • OKCancel
  • RetryCancel
  • YesNo
  • YesNoCancel

Results

System.Windows.MessageBoxResult

  • Cancel
  • No
  • None
  • OK
  • Yes

System.Windows.Forms.DialogResult

  • Abort
  • Cancel
  • Continue
  • Ignore
  • No
  • None
  • OK
  • Retry
  • TryAgain
  • Yes
@bstordrup
Copy link

I would like this too. Since the internal implementation is using the MessageBox API from User32.dll, it does not make sense not including the same options as in WinForms.

@bstordrup
Copy link

The mentioned pull request for WinForms also adds the ability to show a Help button in the message box. Also a nice feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants