[STAThread] static void Main()
else
public static void Main(string[] args)
For a Windows Forms or WPF application, place it inside the Main method before any licensed control is instantiated:
// Custom internal implementation LicenseInfo.SetLicenseKey(string productName, string licenseKey); licenseinfo.setlicensekey
throw new InvalidOperationException("License key not found in environment.");
// Telerik UI for WinForms / ASP.NET LicenseInfo.SetLicenseKey(string licenseKey); // DevExpress LicenseInfo.SetLicenseKey(string licenseKey); [STAThread] static void Main() else public static void
// Set license key as early as possible LicenseInfo.SetLicenseKey("YOUR_LICENSE_KEY_HERE");