Skip to content

License Property

Description

Alternative for .lic file. Included primarily for non-Visual Basic developers.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property License() As String

Remarks

There are some situations where you may need to include the content of the LIC file in your control using the License property. You DO NOT include the actual LIC file. For example, if you are developing an ActiveX control for Internet Explorer, you will need to include the license information using the License property. The License property is located in the GlobalSettings class for each control.

You will need to provide the correct Product Id and Validate Code. This information can be found in the LIC file, which is located in the same directory as the OCX file. By default, the location of the OCX and LIC file is ..\Codejock Software\ActiveX\Xtreme Suite\Bin for the Suite Pro installation. This code should be placed in the Form_Initialize event of the main form.

Example

This sample illustrates how to include the license information in your application.

Private Sub Form_Initialize()  
    CommandBarsGlobalSettings.License = "CommandBars Control Copyright (c) 2003-2005 Codejock Software" & vbCrLf & _  
        "PRODUCT-ID: XCB-ESD-ACTX-9600" & vbCrLf & "VALIDATE-CODE: XXX-XXX-XXX-XXX"  

    DockingPaneGlobalSettings.License = "DockingPane Control Copyright (c) 2003-2005 Codejock Software" & vbCrLf & _  
        "PRODUCT-ID: XDP-ESD-ACTX-9600" & vbCrLf & "VALIDATE-CODE: XXX-XXX-XXX-XXX"  

    PropertyGridGlobalSettings.License = "PropertyGrid Control Copyright (c) 2003-2005 Codejock Software" & vbCrLf & _  
        "PRODUCT-ID: XPG-ESD-ACTX-9600" & vbCrLf & "VALIDATE-CODE: XXX-XXX-XXX-XXX"  

    GridControlGlobalSettings.License = "Grid control Copyright (c) 2003-2005 Codejock Software" & vbCrLf & _  
        "PRODUCT-ID: XRC-ESD-ACTX-9600" & vbCrLf & "VALIDATE-CODE: XXX-XXX-XXX-XXX"  

    SuiteControlsGlobalSettings.License = "Suite Controls Copyright (c) 2003-2005 Codejock Software" & vbCrLf & _  
        "PRODUCT-ID: XSP-ESD-ACTX-9600" & vbCrLf & "VALIDATE-CODE: XXX-XXX-XXX-XXX"  
End Sub

See Also

SkinFrameworkGlobalSettings Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.