Xceed SmartUI Documentation
License method
Methods > License method

The License method must be called in order to license your copy of SmartUI. To register all SmartUI controls being used in your application, the License method should be called in your Sub Main or in the main form's Initialize method.

Visual Basic Copy Code

Private Sub Form_Initialize()
  Dim result As Boolean   

  result =  XceedSmartUI.License( "your license key" )

  If Not result Then
    Call MsgBox( "Licensing failed!" )
  End If
End Sub

If an invalid license key or no license key is used, your SmartUI control will display "not licensed".

If an expired trial license key is used, then your SmartUI control will display "trial expired".

Although Xceed has implemented a new license scheme, older 2.0 license keys are still supported.
XceedSmartUI.License.License( "your license key" )

Syntax

[Boolean =] XceedSmartUI.License( "your license key" )

Parameters

Parameter Description
sLicense Provide your license key here. Both registered users and trial version users have a license key. This key can be found by selecting the Start -> Programs -> Xceed Components -> ActiveX & COM components -> Xceed Component Licenser menu item. Trial version keys are time-limited and will not work after the trial period has ended.

Return Values

true if the function succeeds; false otherwise.

Remarks

The key provided to the License method of the sample applications (SAMPLE-APPLICATION-KEY) can ONLY be used by the sample applications included in the package that was installed on your machine. The sample applications will not run on a machine other than the one on which they were originally installed unless the sample application license key (SAMPLE-APPLICATION-KEY) is replaced with your trial or registered key.