|
Unlocking
a Chilkat Component
To unlock a Chilkat component,
call the UnlockComponent method immediately after creating the
first object instance, but before any other methods are called.
Here is an example in Visual Basic for Chilkat Mail:
Dim mailman As ChilkatMailMan
Set mailman = New ChilkatMailMan
mailman.UnlockComponent "unlock_code"
...
If a component is placed
on a Visual Basic form, you can call UnlockComponent in Form_Load:
Private Sub Form_Load()
ChilkatCrypt1.UnlockComponent "unlock-code"
End Sub
Component properties can
be get/set before unlocking the component. It is only necessary
to call UnlockComponent once per object instantiation. Calling
UnlockComponent on a component that is already unlocked will not
cause an error.
|