Discuss this help topic in SecureBlackbox Forum

Activating the components with the license key

.NET edition

SecureBlackbox components require a key, without which they can't be used. For evaluation purposes, you can use a trial key that comes with SecureBlackbox. It is stored in the "LicenseKey.txt" file in the folder, where you installed SecureBlackbox.

You need to call SetLicenseKey function and pass your license key as Key parameter. Remember, that you don't pass any file name, registry key name or anything else. You pass the license key itself (a text string).
Call SetLicenseKey before using any SecureBlackbox methods.

    [C#]
    void SetLicenseKey(ByteArray key);
    void SetLicenseKey(string key);
    [VB.NET]
    Sub SetLicenseKey(ByVal Key() As Byte)
    Sub SetLicenseKey(ByVal Key As String)

To set two or more license keys (when you have different license keys for different packages of SecureBlackbox) at the same time, just call SetLicenseKey several times, passing a different license key in each call. License keys are added, not replaced.
Note, that as the keys are added, passing an evaluation license key together with production license key will force evaluation delays and nag screen, so be sure to remove the evaluation license key from the list of keys being set.

Starting with SecureBlackbox 5.1, you can set the key in design-time as well by placing an instance of TElSBLicenseManager component to the form of your project and setting its LicenseKey property to the value of the key (NOT the file name).

All sample projects include the call to SetLicenseKey method which passes the evaluation key to the components. If something doesn't work, please check the samples. You will find the sample projects for C# and VB.NET in <SecureBlackbox>\Samples subfolder.

Discuss this help topic in SecureBlackbox Forum