BUG: UserControl Event Is Not Raised from a Modal Form (177996)
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 Q177996 SYMPTOMS
If an event is raised from a UserControl while a modal form is active, the
event is not executed.
CAUSE
The event is not executed if the UserControl is compiled into an OCX and
referenced from a project that is run in the IDE.
RESOLUTION
There are two workarounds to this problem:
- Use the compiled ActiveX component (OCX) only with compiled client
programs (EXE). In other words, both Visual Basic projects are compiled.
-or-
- Use both the ActiveX component and the client project in the IDE in a
project group. In other words, both Visual Basic projects are in design
mode.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
237286 BUG: Event Does Not Fire in the IDE When Raised from Inside a Compiled Modal Form
Modification Type: | Minor | Last Reviewed: | 3/10/2005 |
---|
Keywords: | kbBug kbControl kbCtrlCreate kbpending KB177996 |
---|
|