---
title: "Activate license | Nutrient .NET SDK"
canonical_url: "https://www.nutrient.io/guides/dotnet/troubleshooting/license/activation/"
md_url: "https://www.nutrient.io/guides/dotnet/troubleshooting/license/activation.md"
last_updated: "2026-05-21T17:12:02.219Z"
description: "Learn how to activate your Nutrient .NET SDK license. Follow our guide for instructions on licensing your software for development and deployment."
---

# Activating a license

To activate a license, follow the steps below:

1. In Visual Studio, create a new project or open the code of your existing application. For more information on creating a new project, see the [Microsoft documentation](https://learn.microsoft.com/en-us/visualstudio/ide/create-new-project). It’s recommended to create a project that runs on.NET 6.0 or newer.

2. Create a `LicenseManager` object in the code file where the application loads before using any of the methods of Nutrient.NET SDK (formerly GdPicture.NET).

3. Pass the license key to the `RegisterKEY` method of the `LicenseManager` object.

4. Repeat this process for all the code files where you use Nutrient.NET SDK.

### C#

```csharp

LicenseManager licenseManager = new LicenseManager();
licenseManager.RegisterKEY("LICENSE_KEY");

```

### VB.NET

```vb

Dim licenseManager As New LicenseManager
licenseManager.RegisterKEY("LICENSE_KEY")

```

### C++ MFC

```cppmfc

CLicenseManager licenseManager;
licenseManager.CreateDispatch(L"GdPicture14.LicenseManager");
licenseManager.RegisterKEY(L"LICENSE_KEY");

```

### UNMANAGED C++

```unmanagedcpp

BSTR bstrLicense = ::SysAllocString(L"LICENSE_KEY");
if (bstrLicense!= NULL)
{
   _LicenseManagerPtr licenseManager(__uuidof(LicenseManager));
   VARIANT_BOOL result = licenseManager->RegisterKEY(bstrLicense);
   ::SysFreeString(bstrLicense);
}

```

### C++ BUILDER

```cppbuilder

BSTR bstrLicense = ::SysAllocString(L"LICENSE_KEY");
if (bstrLicense!= NULL)
{
   _LicenseManagerPtr licenseManager;
   licenseManager = (_LicenseManagerPtr)CreateComObject(CLSID_LicenseManager);
   licenseManager->RegisterKEY(bstrLicense);
   ::SysFreeString(bstrLicense);
   bstrLicense = NULL;
}

```

### DELPHI

```delphi

var
   LicenseManager1: Variant;
begin
   LicenseManager1 := CreateOleObject('GdPicture14.LicenseManager');
   LicenseManager1.RegisterKey('LICENSE_KEY');

```

### JAVASCRIPT

```js

var licenseManager;
licenseManager = new ActiveXObject('GdPicture14.LicenseManager');
licenseManager.RegisterKey('LICENSE_KEY');

```

### POWERBUILDER

```powerbuilder

long ll_result
OLEObject licenseManager
licenseManager = CREATE OLEObject
ll_result = licenseManager.ConnectToNewObject("GdPicture14.LicenseManager")
licenseManager.RegisterKey("LICENSE_KEY")

```

### VISUAL BASIC 6

```vb6

Dim licenseManager As New LicenseManager
Call licenseManager.RegisterKEY("LICENSE_KEY")

```

### VBA

```vba

Dim licenseManager As New GdPicture_NET_14.LicenseManager
licenseManager.RegisterKey ("LICENSE_KEY")

```
---

## Related pages

- [Renewing commercial license for version 14.1 or older](/guides/dotnet/troubleshooting/license/renew-commercial-license.md)
- [Determining components required to run code](/guides/dotnet/troubleshooting/license/determine-required-components.md)

