KeyUp event captures msgbox response

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RGF2aWQgTmljaG9scw==?=

    KeyUp event captures msgbox response

    I'm writing a data entry application where many fields are validated and
    committed through KeyUp capturing a Return keycode. My problem is that if a
    message box pops up and the user presses the Enter key to respond, that
    keystroke is captured by the form KeyUp event.

    An example is the user changing a field value and a message box displays
    warning that account codes must be changed if the entered value is committed.
    The user presses the Return key to respond OK and the form previews the
    keystroke and commits the change.

    Do I need to use the form AcceptButton property and change that for each
    field?
    --
    DMNichols
Working...