Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions knowledge-base/add-license-key-openedge.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ I work in an OpenEdge environment and need to activate my Telerik UI for WinForm

## Solution

The following tutorial will demonstrate how to set up your license key in the OpenEdge environment.
In OpenEdge ABL applications, it is crucial to register the Telerik WinForms license key before any Telerik control, form, or component is initialized — especially if your application starts with a Telerik form. The following tutorial demonstrates how to set up your license key in the OpenEdge environment, either in a Form or in a procedure file.

### Registering the License Key in the Form

1. Go to the [Setting Up Your Telerik UI for WinForms License Key](https://docs.telerik.com/devtools/winforms/licensing/license-key#downloading-the-license-key) and follow the first two sections of the article.
1. Downloading the License Key
1. Activating the Telerik UI for WinForms Components

1. Go to the [License Keys page](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account.

1. On the Telerik UI for WinForms row, click the **View key** link in the **SCRIPT KEY** column. Copy only the string in the first Telerik.Licensing.EvidenceAttribute("key").
1. On the Telerik UI for WinForms row, click the **View key** link in the **SCRIPT KEY** column. __Copy ONLY the key string in the first Telerik.Licensing.EvidenceAttribute("key").__

![copy-license-key](images/add-license-key-openedge.png)

Expand All @@ -37,7 +39,6 @@ The following tutorial will demonstrate how to set up your license key in the Op
````ABL

CONSTRUCTOR PUBLIC Form1 ( ):
// ActivePerpetual script key
Telerik.Licensing.TelerikLicensing:Register("Your License Key").

InitializeComponent().
Expand All @@ -57,6 +58,14 @@ END CONSTRUCTOR.

>Do not publish the script license key snippet in publicly accessible repositories. This is your personal license key.

### Registering the License Key in a Procedure File

Unlike standard .NET applications, OpenEdge GUI applications always start from a procedure file (.p), not a class (.cls). This means there is always a non-GUI entry point where initialization code can safely run before any UI is loaded.

If registering the key inside a Form does not work — for example, when the first screen is a Telerik form — you should register the key earlier in your application's startup sequence.

For more advanced scenarios, including customizing the startup of your project, refer to the [Progress Developer Studio for OpenEdge Online Help](https://docs.progress.com/bundle/openedge-developer-studio-help/page/Customize-project-startup.html).


## See Also

Expand Down
Binary file modified knowledge-base/images/add-license-key-openedge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.