Skip to content

Commit 54dc9fd

Browse files
authored
Merge pull request #715 from telerik/dkrastev/m-Add-OpenEdge-License-key
KB: Add OpenEdge License Key
2 parents 2593fbd + 3b1641a commit 54dc9fd

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: Set Your License Key in OpenEdge Project
3+
description: Learn how to add your Telerik UI for .NET WinForms license OpenEdge environment.
4+
type: how-to
5+
page_title: Set Your License Key in OpenEdge Project
6+
slug: add-license-as-snippet-ci-cd
7+
tags: licensing , winforms,wf, cd, cd, code, snippet, openedge
8+
res_type: kb
9+
---
10+
11+
## Environment
12+
13+
| Product | Version
14+
| ---- | ---- |
15+
| Telerik UI for .NET WinForms | 2025 Q1 or later |
16+
17+
## Description
18+
19+
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?
20+
21+
## Solution
22+
23+
The following tutorial will demonstrate how to set up your license key in the OpenEdge environment.
24+
25+
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.
26+
1. Downloading the License Key
27+
1. Activating the Telerik UI for .NET WinForms Components
28+
29+
1. Go to the [License Keys page](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account.
30+
31+
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").
32+
33+
![copy-license-key](images/add-license-key-openedge.png)
34+
35+
1. Now we need to register the copied license key above.
36+
37+
````ABL
38+
39+
CONSTRUCTOR PUBLIC Form1 ( ):
40+
// ActivePerpetual script key
41+
Telerik.Licensing.TelerikLicensing:Register("Your License Key").
42+
43+
InitializeComponent().
44+
45+
THIS-OBJECT:ComponentsCollection:Add(THIS-OBJECT:components).
46+
CATCH e AS Progress.Lang.Error:
47+
UNDO, THROW e.
48+
END CATCH.
49+
50+
END CONSTRUCTOR.
51+
````
52+
>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.
53+
54+
1. Add a reference to the `Telerik.Licensing.Runtime.dll`.
55+
56+
>Do not publish the script license key snippet in publicly accessible repositories. This is your personal license key.
57+
58+
59+
## See Also
60+
61+
* [Setting Up Your License Key]({%slug license-key%})
62+
* [License Activation Errors and Warnings]({%slug license-errors-warnings%})
63+
* [Frequently Asked Questions about Your Telerik UI for .NET WinForms License Key]({%slug licensing-faq%})
64+
* [Adding the License Key to CI Services]({%slug add-license-to-ci-cd%})
Loading

0 commit comments

Comments
 (0)