SpiceLogic.HtmlEditor.WinForms
9.4.0
dotnet add package SpiceLogic.HtmlEditor.WinForms --version 9.4.0
NuGet\Install-Package SpiceLogic.HtmlEditor.WinForms -Version 9.4.0
<PackageReference Include="SpiceLogic.HtmlEditor.WinForms" Version="9.4.0" />
<PackageVersion Include="SpiceLogic.HtmlEditor.WinForms" Version="9.4.0" />
<PackageReference Include="SpiceLogic.HtmlEditor.WinForms" />
paket add SpiceLogic.HtmlEditor.WinForms --version 9.4.0
#r "nuget: SpiceLogic.HtmlEditor.WinForms, 9.4.0"
#:package SpiceLogic.HtmlEditor.WinForms@9.4.0
#addin nuget:?package=SpiceLogic.HtmlEditor.WinForms&version=9.4.0
#tool nuget:?package=SpiceLogic.HtmlEditor.WinForms&version=9.4.0
SpiceLogic .NET WinForms HTML Editor Control
A drag-and-drop ready, feature-rich WYSIWYG HTML Editor control for Windows Forms applications.
Features
- WYSIWYG HTML Editing with clean HTML/XHTML output
- Three Editing Modes - Visual editing, HTML source, and preview with synchronized selection
- Built-in Spell Checker with inline and dialog modes (OpenOffice dictionaries)
- MS Word Paste with automatic cleanup and conversion
- Image Handling - insert from file, URL, or clipboard with Base64 embedding
- Table Editor - create, modify, and style HTML tables
- YouTube Embedding - insert YouTube videos directly
- FTP Image Upload - upload local images to remote server
- Customizable Toolbar with modern interface
- CSS Style Builder - visual CSS editing
- Data Binding support for bound scenarios
- Visual Studio Designer integration - drag and drop onto your form
- Comprehensive API - caret positioning, HTML change events, custom paste handling
Installation
NuGet Package Manager
Install-Package SpiceLogic.HtmlEditor.WinForms
.NET CLI
dotnet add package SpiceLogic.HtmlEditor.WinForms
Package Reference
<PackageReference Include="SpiceLogic.HtmlEditor.WinForms" />
Quick Start
Drag and Drop
After installing the NuGet package, the WinFormHtmlEditor control appears in the Visual Studio Toolbox. Simply drag it onto your form.
Programmatic Usage
C#
using SpiceLogic.WinHTMLEditor.WinForm;
public partial class MainForm : Form
{
public MainForm()
{
InitializeComponent();
// Set initial content
winFormHtmlEditor1.BodyHtml = "<p>Hello <strong>World</strong>!</p>";
// Handle HTML changes
winFormHtmlEditor1.HtmlChanged += (s, e) =>
{
Console.WriteLine("HTML changed!");
};
}
private void SaveDocument()
{
string html = winFormHtmlEditor1.DocumentHtml;
File.WriteAllText("output.html", html);
}
}
VB.NET
Imports SpiceLogic.WinHTMLEditor.WinForm
Public Class MainForm
Public Sub New()
InitializeComponent()
' Set initial content
winFormHtmlEditor1.BodyHtml = "<p>Hello <strong>World</strong>!</p>"
' Handle HTML changes
AddHandler winFormHtmlEditor1.HtmlChanged, Sub(s, e) Console.WriteLine("HTML changed!")
End Sub
Private Sub SaveDocument()
Dim html As String = winFormHtmlEditor1.DocumentHtml
File.WriteAllText("output.html", html)
End Sub
End Class
License Key
Set the license key once at application startup, before any WinFormHtmlEditor instance is created. The recommended location is Program.cs, inside Main and before Application.Run(...), so the key is in place for every form in the application:
C#
// Program.cs
[STAThread]
static void Main()
{
WinFormHtmlEditor.LicenseKey = "YOUR LICENSE KEY HERE";
ApplicationConfiguration.Initialize();
Application.Run(new MainForm());
}
VB.NET
' ApplicationEvents.vb -- Startup handler
Private Sub MyApplication_Startup(sender As Object, e As StartupEventArgs) _
Handles Me.Startup
WinFormHtmlEditor.LicenseKey = "YOUR LICENSE KEY HERE"
End Sub
If LicenseKey is not set, the control runs in a 14-day trial mode. A purchased key can be obtained from your SpiceLogic customer account.
Supported Frameworks
| Framework | Status |
|---|---|
| .NET Framework 4.5 | Supported |
| .NET Framework 4.7.2 | Supported |
| .NET Framework 4.8 | Supported |
| .NET 5 (Windows) | Supported |
| .NET 6 (Windows) | Supported |
| .NET 7 (Windows) | Supported |
| .NET 8 (Windows) | Supported |
| .NET 9 (Windows) | Supported |
| .NET 10 (Windows) | Supported |
Documentation
For full documentation, samples, and API reference, visit: https://spicelogic.com/docs/WinHTMLEditorControl
Product page (pricing, screenshots, change log): https://spicelogic.com/Products/NET-WinForms-HTML-Editor-Control-8
AI assistant integration (MCP server)
SpiceLogic publishes an official Model Context Protocol server for this control, among the first from a .NET UI vendor. Point Claude Code, Cursor, or VS Code Copilot at it and your assistant can look up a real method signature, pull an actual documentation page, or grab a snippet that compiles today, instead of guessing from stale training data.
You do not have to set it up first. Paste this into Claude Code, Cursor, or VS Code Copilot in agent mode and the assistant connects itself, then builds the integration:
First connect yourself to the SpiceLogic documentation server so you work from the
real API instead of memory. In Claude Code run: claude mcp add --transport http
spicelogic-winforms-editor https://mcp.spicelogic.com/html-editor/winforms . In VS
Code or Cursor, create .vscode/mcp.json with an http server named
spicelogic-winforms-editor pointing at that URL and start it. Then check that the
SpiceLogic tools actually respond. If they do not, tell me to restart the session
and stop there rather than writing code from memory.
Once the tools respond, add a WYSIWYG HTML editor to my WinForms app: install the
SpiceLogic.HtmlEditor.WinForms NuGet package, place the editor on the main form so
it fills the window, seed it with a sample document, wire a Save button that writes
the editor's HTML to a file, then build and run it.
Every client gates a newly added MCP server behind a restart or a trust prompt, which is why the prompt tells the assistant to stop rather than fall back to guesswork. The endpoint is scoped to WinForms, so a WinForms question can never be answered with WPF's API. See https://mcp.spicelogic.com for the tool list and per-client setup.
License
Commercial license with 14-day free trial. View EULA - SpiceLogic Inc.
Support
- Website: spicelogic.com
- Email: support@spicelogic.com
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0-windows7.0 is compatible. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
| .NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 is compatible. net481 was computed. |
-
.NETFramework 4.5
- System.ValueTuple (>= 4.5.0)
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
.NETFramework 4.7.2
- System.Memory (>= 4.5.5)
- System.Resources.Extensions (>= 4.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.ValueTuple (>= 4.5.0)
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
.NETFramework 4.8
- System.Memory (>= 4.5.5)
- System.Resources.Extensions (>= 4.6.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.ValueTuple (>= 4.5.0)
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
net10.0-windows7.0
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
net5.0-windows7.0
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
net6.0-windows7.0
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
net7.0-windows7.0
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
net8.0-windows7.0
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
-
net9.0-windows7.0
- Unofficial.Microsoft.mshtml.NetStandard (>= 7.0.3300.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.