BUG: Pressing TAB Key on Form Does Not Change Focus
Article ID: 179707
Article Last Modified on 5/13/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
This article was previously published under Q179707
SYMPTOMS
An ActiveX control is created using Visual Basic and compiled into an OCX
file. The compiled OCX is then referenced in a Visual Basic standard EXE
project. When the standard EXE project is run in the IDE, tabbing between
the controls on the form and the ActiveX control results in a beep and the
focus does not change. This problem occurs after the ActiveX control has
shown a modal form.
RESOLUTION
This problem only occurs when a project in the IDE references the compiled
OCX; the problem does not occur when the project is made into an EXE.
To work around this problem, create a project group and reference the
ActiveX control from the ActiveX control project. Reference the compiled
version of the ActiveX control just before you compile your Visual Basic
project.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
Additional query words: user control kbVBp500bug kbVBp600bug kbVBp kbdsd kbDSupport kbControl
Keywords: kbbug KB179707