diff --git a/knowledge-base/add-license-key-openedge.md b/knowledge-base/add-license-key-openedge.md new file mode 100644 index 000000000..7a66b3995 --- /dev/null +++ b/knowledge-base/add-license-key-openedge.md @@ -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%}) diff --git a/knowledge-base/images/add-license-key-openedge.png b/knowledge-base/images/add-license-key-openedge.png new file mode 100644 index 000000000..54cb5d5a8 Binary files /dev/null and b/knowledge-base/images/add-license-key-openedge.png differ