Stylet icon indicating copy to clipboard operation
Stylet copied to clipboard

ShowMessageBox MessageBoxButtons.YesNo disabling the Esc key and Window "X" close functionality

Open canton7 opened this issue 4 years ago • 0 comments

Discussed in https://github.com/canton7/Stylet/discussions/309

Originally posted by duners88 November 24, 2021 It would be nice if the MessageBoxButtons.YesNo parameter option disabled the Window close "X" and the ESC key functionality that closes the window.
I use the YesNo enum value when I want to force the user to actively click something.
I use the YesNoCancel if the user does not need to make a decision and can "opt out" or close the message without making a decision.

Just a suggestion, I believe this is how the System.Windows.Forms.MessageBox class functions.

canton7 avatar Dec 04 '21 11:12 canton7