BUG: VBComponents Add method cannot add a Form
Article ID: 172244
Article Last Modified on 8/19/2004
APPLIES TO
- Microsoft Visual Basic 5.0 Control Creation Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
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.
STATUS
Microsoft 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.
Keywords: kbbug KB172244