BUG: Access Keys for UserControl Do Not Work in MFC Dialog
Article ID: 181033
Article Last Modified on 6/6/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
- Microsoft Visual C++ .NET 2003 Standard Edition
- Microsoft Visual C++ .NET 2002 Standard Edition
This article was previously published under Q181033
SYMPTOMS
Access Keys (accelerators) for a UserControl do not work if
the control is contained in an MFC Dialog.
CAUSE
This problem is due to mnemonic differences between MFC 4.2
and Visual Basic 5.0. These mnemonic differences are discussed in the following
article in the Microsoft Knowledge Base:
145698
PRB: Mnemonic Differences Between MFC 4.0 and Visual
Basic 4.0
Although this article describes a scenario where the roles of
Visual Basic and MFC are reversed, the same problem is encountered when a
Visual Basic- created control is contained in an MFC Dialog.
RESOLUTION
There is currently no known workaround for this problem.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft
products listed at the beginning of this article. We are researching this bug
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Additional query words: user control activex ocx
Keywords: kbbug kbctrlcreate kbpending kbcontrol KB181033