BUG: VBComponents Add Method Cannot Add a Form (189400)
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 Q189400 SYMPTOMS
When attempting to add a Form to a Visual Basic project through the
IDTExtensibility model, you receive the following error:
Runtime error '-2147467259 (800004005)':
System Error &h80004005(-2147467259). Unspecified error
CAUSE
This error can occur if you use the Add method of the VBComponents object
and pass vbext_ct_MSForm as the component type.
vbext_ct_MSForm is not a valid component type; it corresponds to Form3
designers, which Visual Basic does not support.
RESOLUTION
Use the VBComponents AddFromTemplate method. See the MORE INFORMATION
Section of this article for additional information.
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.
REFERENCES
Books Online for Microsoft Visual Basic, versions 5.0 and 6.0
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug KB189400 |
---|
|