BUG: Type Mismatch Referencing UserControl on Unloaded Form (187633)
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 Q187633 SYMPTOMS
If you attempt to set an object variable referencing a UserControl on an
unloaded form, and the UserControl resides in the same project as the
Module containing the declaration, a TypeMismatch error occurs. This
problem does not occur if the form is loaded, if the UserControl is in a
different project, or if the code is placed in the Load Event of the Form
containing the UserControl.
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: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug KB187633 |
---|
|