BUG: ActiveX Control in MDI Child Form Does Not Maintain Focus
Article ID: 185477
Article Last Modified on 3/10/2005
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 Q185477
SYMPTOMS
A multiple document interface (MDI) child form contains an ActiveX control,
and the ActiveX control has the focus. When you leave and return to the MDI
child form, the focus does not return to the ActiveX control.
RESOLUTION
To work around this problem, add Me.SetFocus to the GotFocus event of all
ActiveX controls in the MDI child form.
For Example:
Private Sub RichTextBox1_GotFocus()
Me.SetFocus
End Sub
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
Keywords: kbbug kbctrl kbpending KB185477