Article ID: 190153 - Last Review: May 13, 2003 - Revision: 3.0 INFO: Remove Information About Unused ActiveX ControlsThis article was previously published under Q190153 On This PageSUMMARY
Visual Basic 6.0 offers a new option for projects:
"Remove information about unused ActiveX Controls."
This article discusses how to use this option. MORE INFORMATION
The Make tab under the Project Properties menu has the following option:
"Remove information about unused ActiveX Controls"
If this option is selected, any ActiveX controls that have been referenced but not sited within the project will not have their license information included in the final compiled executable. Visual Basic allows ActiveX controls to be dynamically loaded at run-time. This feature raises concerns about being able to load/use controls which a program legally should not be able to use. Visual Basic has two ways of using an ActiveX control legally:
A license that is included in a compiled executable will be part of the Licenses collection object. In order to add controls dynamically without concern about the License collection object, make sure that the "Remove information about unused ActiveX Controls" option is deselected. Adding an ActiveX Control During Run-time That Requires a LicenseThe following sample shows how to reference a control in Visual Basic and add it dynamically during run-time without having to use the Licenses collection object:
REFERENCES
For additional information about the Licenses Collection Object, please see
the following article in the Microsoft Knowledge Base:
188577
(http://support.microsoft.com/kb/188577/EN-US/
)
: HOWTO: What Is the Licenses Collection Used For?
| Article Translations
|
Back to the top
