BUG: Modal Form Disabled When Launched From ActiveX Control (182949)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q182949 SYMPTOMS
You open a Form from a UserControl and no object can have the focus. Users
cannot click on anything, not even to close the Form.
CAUSE
If a UserControl on a Modal Form opens another Modal Form which was loaded
in either the InitProperties or ReadProperties events, no object can have
the focus.
RESOLUTION- Do not load a Form modally from the InitProperties or ReadProperties Events of a UserControl on a Modal Form.
- Use a Timer to re-enable the window with the EnableWindow API function.
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.
Modification Type: | Minor | Last Reviewed: | 3/10/2005 |
---|
Keywords: | kbbug kbpending KB182949 |
---|
|