Hard OK button clicks through dialogs to form

  • Thread starter Thread starter Blair
  • Start date Start date
B

Blair

If I have a message box displayed (eg. MessageBox.Show("hello"))
And my underlying form has a KeyUp event (or GotFocus that redirects to
a control that has KeyUp event) and the user dismisses the message box
using a hard button like the OK button, or the center of the 5-way or
the return key on a hard or soft keyboard, the event is passed through
to the KeyUp event. This is obviously unintended behaviour.

I am wondering, is this a MS bug? Is there something different I should
be doing? Is there a fix or workaround?

Something else to note, if I click the OK box with the stylus, there is
no unwanted event.

Thanks,
=Blair.
 
Back
Top