Visual Basic Reference

Visual Studio 6.0

LicenseInfo Object

See Also    Example    Properties    Methods    Events

Represents the license key and programmatic ID (progID) of a control.




When adding a control that requires a license key to the Controls collection, you must first add the control's license to the Licenses collection. Using the Add method, each pair of license key and progID become properties of the LicenseInfo object.

To determine the license key and progId of each control, use the For Each statement with the LicenseInfo object, as shown below:

Dim li As LicenseInfo
For Each li in Licenses
   Debug.Print li.ProgID, li.LicenseKey