Skip to content

KB: Add OpenEdge License Key #715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
64 changes: 64 additions & 0 deletions knowledge-base/add-license-key-openedge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
title: Set Your License Key in OpenEdge Project
description: Learn how to add your Telerik UI for .NET WinForms license OpenEdge environment.
type: how-to
page_title: Set Your License Key in OpenEdge Project
slug: add-license-as-snippet-ci-cd
tags: licensing , winforms,wf, cd, cd, code, snippet, openedge
res_type: kb
---

## Environment

| Product | Version
| ---- | ---- |
| Telerik UI for .NET WinForms | 2025 Q1 or later |

## Description

I work in an OpenEdge environment and need to activate my Telerik UI for .NET WinForms license key. My projects, however, do not use NuGet packages. How can I activate the Telerik UI for .NET WinForms without using the `Telerik.Licensing` package?

## Solution

The following tutorial will demonstrate how to set up your license key in the OpenEdge environment.

1. Go to the [Setting Up Your Telerik UI for .NET 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 .NET 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 .NET WinForms row, click the **View key** link in the **SCRIPT KEY** column. Copy only the string in the first Telerik.Licensing.EvidenceAttribute("key").

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

1. Now we need to register the copied license key above.

````ABL

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

THIS-OBJECT:ComponentsCollection:Add(THIS-OBJECT:components).
CATCH e AS Progress.Lang.Error:
UNDO, THROW e.
END CATCH.

END CONSTRUCTOR.
````
>important The license key needs to be registered before initializing our controls. In the above scenario, the license key is registered before the InitializeComponent() method is executed.

1. Add a reference to the `Telerik.Licensing.Runtime.dll`.

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

## See Also

* [Setting Up Your License Key]({%slug license-key%})
* [License Activation Errors and Warnings]({%slug license-errors-warnings%})
* [Frequently Asked Questions about Your Telerik UI for .NET WinForms License Key]({%slug licensing-faq%})
* [Adding the License Key to CI Services]({%slug add-license-to-ci-cd%})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.