BUG: VBComponents Add method cannot add a Form (172244)
The information in this article applies to:
- Microsoft Visual Basic Control Creation 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 Q172244 SYMPTOMS
When attempting to add a Form to a Visual Basic 5.0 project through the
IDTExtensibility model with VBComponents' Add method and passing
vbext_ct_MSForm, you get Run-time error '-2147467259 (800004005)':
"System Error &h80004005(-2147467259). Unspecified error"
CAUSE
Visual Basic 5.0 does not support UserForms designers, enum member
vbext_ct_MSForm is not valid.
RESOLUTION
Use VBComponents' AddFromTemplate method. See the MORE INFORMATION
Section of this article.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. Microsoft is researching this bug and will post more information in this article when the information becomes available.
Modification Type: | Major | Last Reviewed: | 8/19/2004 |
---|
Keywords: | kbbug KB172244 |
---|
|