BUG: Form Key Events Fire Twice with SSTab ControlLast reviewed: November 19, 1996Article ID: Q149273 |
The information in this article applies to:
SYMPTOMSIf an SSTab control has the focus and a key is pressed, then all of the Form level key events (Form_KeyDown, Form_KeyPress, and Form_KeyUp) will be fired twice. This problem occurs only if the KeyPreview property of the form is set to True.
WORKAROUNDIt may be possible to write code to ignore the second key event if focus is on the tab control. This could be done by utilizing a global flag variable to represent whether or not the key event had been raised before. Aside from this, the best option is to avoid writing code that depends on this functionality.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |