FIX: GotFocus Event Not Executed in Sub Main and SetFocus (149489)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q149489 SYMPTOMS
The GotFocus Event fails to execute when the form is displayed through a
Sub Main event and the SetFocus event is executed.
RESOLUTION
Execute the DoEvents method after the SetFocus event.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic
5.0.
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbBug kbfix kbVBp500fix KB149489 |
---|
|