BUG: ActiveX Control in MDI Child Form Does Not Maintain Focus (185477)
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 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.
Modification Type: | Minor | Last Reviewed: | 3/10/2005 |
---|
Keywords: | kbBug kbCtrl kbpending KB185477 |
---|
|