PRB: Error 743 Adding ActiveX Controls to Control Collection (191864)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q191864 SYMPTOMS
When dynamically adding a large number of ActiveX controls into a Form's
Controls Collection, you receive the following:
"Error 743. Unable to create or activate a new instance of
<control name>."
RESOLUTION
While this situation has been reported as a bug, this is an application
design problem and the best solution is "Don't do this." If you have
encountered this problem, you are probably using controls where you should
be using objects. Consider using a Class, ActiveX DLL, or ActiveX EXE to
create your objects. If you must use controls, consider using windowless
controls as they are less resource-intensive.
Keep in mind that forms with hundreds of visible controls will be confusing
for the end user. If the controls are not being displayed, then there is no
reason to use a control. ActiveX controls have a great deal of "overhead"
when compared to an object.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb KB191864 |
---|
|