/syncfusion-winforms:syncfusion-winforms-licensingfrom Syncfusion WinForms Controls
Comprehensive guide for implementing and managing Syncfusion Windows Forms licensing. Use this when troubleshooting license validation errors, generating or registering license keys, or configuring CI/CD license validation. This skill covers license key management, trial vs licensed versions, NuGet package licensing, and build server scenarios.
Ships in Syncfusion WinForms Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill provides comprehensive guidance for implementing and managing Syncfusion licensing in Windows Forms applications, including license key generation, registration, troubleshooting, and CI/CD integration.
Use this skill immediately when you need to:
Starting with version 16.2.0.x, Syncfusion introduced a new licensing system that requires license key registration for:
Key Points:
📄 Read: references/licensing-overview.md
When to read this reference:
📄 Read: references/license-generation.md
When to read this reference:
📄 Read: references/license-registration.md
When to read this reference:
📄 Read: references/licensing-errors.md
When to read this reference:
📄 Read: references/licensing-faqs.md
When to read this reference:
Here's a complete example of registering a Syncfusion license key in a Windows Forms application:
using System;
using System.Windows.Forms;
using Syncfusion.Licensing;
namespace MyWindowsFormsApp
{
static class Program
{
[STAThread]
static void Main()
{
// SECURITY BEST PRACTICE: Read license key from environment variable
string licenseKey = Environment.GetEnvironmentVariable("SYNCFUSION_LICENSE_KEY");
if (string.IsNullOrEmpty(licenseKey))
{
MessageBox.Show("Syncfusion license key not found in environment variables.",
"Configuration Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
// Register Syncfusion license key BEFORE any Syncfusion control is initiated
SyncfusionLicenseProvider.RegisterLicense(licenseKey);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
using System;
using System.Configuration;
using System.Windows.Forms;
using Syncfusion.Licensing;
namespace MyWindowsFormsApp
{
static class Program
{
[STAThread]
static void Main()
{
// Read from app.config (ensure it's not committed to source control)
string licenseKey = ConfigurationManager.AppSettings["SyncfusionLicenseKey"];
if (string.IsNullOrEmpty(licenseKey))
{
MessageBox.Show("Syncfusion license key not configured.",
"Configuration Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
SyncfusionLicenseProvider.RegisterLicense(licenseKey);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}
App.config example:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<!-- DO NOT commit actual license key to source control -->
<!-- Use environment-specific config files or CI/CD secrets -->
<add key="SyncfusionLicenseKey" value="" />
</appSettings>
</configuration>
Imports Syncfusion.Licensing
Namespace My
Partial Friend Class MyApplication
Public Sub New()
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
' SECURITY BEST PRACTICE: Read license key from environment variable
Dim licenseKey As String = Environment.GetEnvironmentVariable("SYNCFUSION_LICENSE_KEY")
If String.IsNullOrEmpty(licenseKey) Then
MessageBox.Show("Syncfusion license key not found in environment variables.", _
"Configuration Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Return
End If
' Register Syncfusion License
SyncfusionLicenseProvider.RegisterLicense(licenseKey)
Me.IsSingleInstance = False
Me.EnableVisualStyles = True
Me.SaveMySettingsOnExit = True
Me.ShutdownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
End Sub
End Class
End Namespace
Windows (PowerShell):
# For current session
$env:SYNCFUSION_LICENSE_KEY = "your-license-key-value"
# Permanent (User level)
[System.Environment]::SetEnvironmentVariable("SYNCFUSION_LICENSE_KEY", "your-license-key-value", "User")
# Permanent (System level - requires admin)
[System.Environment]::SetEnvironmentVariable("SYNCFUSION_LICENSE_KEY", "your-license-key-value", "Machine")
Windows (Command Prompt):
setx SYNCFUSION_LICENSE_KEY "your-license-key-value"
When implementing Syncfusion licensing:
When encountering license validation errors:
When implementing license validation in CI pipelines:
ValidateLicense() method in unit testsSecurity Requirements:
When purchasing a license after trial:
Never Hardcode License Keys
Use Secure Storage Methods
Access Control
CI/CD Security
Example - What NOT to Do:
// ❌ WRONG: Hardcoded key in source code
SyncfusionLicenseProvider.RegisterLicense("Mgo+DSMBaFt/QHRq...");
Example - Correct Approach:
// ✅ CORRECT: Key from environment variable
string key = Environment.GetEnvironmentVariable("SYNCFUSION_LICENSE_KEY");
SyncfusionLicenseProvider.RegisterLicense(key);
| Assembly Source | License Registration Required? | Where to Get Key |
|---|---|---|
| NuGet packages from nuget.org | ✅ Yes | License & Downloads / Trial & Downloads |
| Trial installer | ✅ Yes | Trial & Downloads |
| Licensed installer | ❌ No | Not applicable |
Main() method before Application.Run()Application.Designer.vb constructor or Program.vbSyncfusion.Licensing.dll is referenced with Copy Local = TrueScenario: Developer setting up Syncfusion in a new Windows Forms project using NuGet packages.
Approach:
Scenario: Application shows "License key not registered" or "Invalid key" error.
Approach:
Scenario: Setting up Syncfusion licensing for automated builds or CI/CD.
Approach:
Scenario: Developer purchased license after using trial version.
Approach:
Scenario: Upgrading Syncfusion components to a new version.
Approach:
This skill covers the complete lifecycle of Syncfusion Windows Forms licensing:
Always start by reading the appropriate reference file based on your specific need (overview, generation, registration, errors, or FAQs).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winforms113 skills in this plugin
/syncfusion-winforms-ai-assistviewGuide for implementing Syncfusion Windows Forms AI AssistView (SfAIAssistView) for building conversational AI interfaces in desktop applications. Use this when creating chat interfaces, AI assistants, or chatbots with Windows Forms. Supports OpenAI and Azure OpenAI integration, typing indicators, chat suggestions, message bubbles, custom views, input toolbar with attachments, response toolbar actions, and stop responding for interactive messaging experiences./syncfusion-winforms-autocompleteGuides implementation of the Syncfusion WinForms AutoComplete control for text input with auto-suggestion functionality. Use when users want to add autocomplete textboxes, implement auto-suggestion features, create search boxes with suggestions, enable URL/email autocomplete, or build type-ahead search functionality in Windows desktop applications. Covers data binding, customization, filtering, multi-column dropdowns, events, and all AutoComplete-specific features./syncfusion-winforms-autolabelGuides implementation of the Syncfusion WinForms AutoLabel control for automatic label positioning with form controls. Use when users want to add labels that automatically reposition when controls move, create form layouts with paired label-control units, implement complex form designs with FlowLayout, or ensure labels stay synchronized with their associated controls. Covers labeling controls, positioning, spacing, size settings, theming, and events./syncfusion-winforms-banner-text-providerGuide for implementing Syncfusion WinForms BannerTextProvider (watermark text provider) control. Use this when working with watermark text, placeholder text, or hint text in editor controls. Covers setup, text modes (FocusMode/EditMode), color/font customization, and supported control types in Windows Forms applications./syncfusion-winforms-border-layoutImplement Syncfusion Windows Forms BorderLayout to arrange child controls along borders (North, South, East, West) and center. Use this when working with BorderLayout, positioning controls in border regions, using docking alternatives, or configuring container layout and control spacing in Windows Forms applications./syncfusion-winforms-bullet-graphImplementation guide for Syncfusion Windows Forms Bullet Graph control for compact data visualization. Use this when working with bullet graphs, performance indicators, KPI visualization, comparative measures, or qualitative ranges in WinForms. This skill covers dashboard gauges, target vs actual comparisons, and performance range visualization in Windows Forms desktop applications.