BUG: Menu Accelerators Still Work When Form is Disabled (192252)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q192252 SYMPTOMS
You have a Visual Basic form whose Enabled property has been set to False.
All user input is disabled except for the menu accelerator keys. The user
can still invoke code on a disabled form through the accelerator keys (such
as pressing ALT+F X on the keyboard to invoke the File|Exit command).
RESOLUTION
When disabling a Form to prevent all user input, top-level menu items must
be disabled as well. For example:
Private Sub DisableForm()
Form1.Enabled = False
mnuFile.Enabled = False
End Sub
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug KB192252 |
---|
|