Getting Started

The SpiceLogic WinForms HTML Editor Control is a drop-in WYSIWYG HTML editor for Windows Forms applications. It gives end users a familiar word-processor-style surface for authoring rich HTML — with a customizable toolbar, an in-place spell checker, a Microsoft-Word-compatible paste pipeline, image and table editing, and synchronized switching between visual, HTML-source, and preview modes — while exposing a strongly-typed .NET API for everything you would want to do programmatically.

SpiceLogic WinForms HTML Editor Control hero screenshot showing the WYSIWYG surface, toolbar, and rich text editing canvas inside a Windows Forms application.

Supported target frameworks

The package multi-targets the following frameworks, so a single PackageReference works whether you are on classic .NET Framework or modern .NET:

net10.0-windows, net9.0-windows, net8.0-windows, net7.0-windows, net6.0-windows, net5.0-windows, net48, net472, net45.

Your host project must be a Windows Forms application (an SDK-style project with UseWindowsForms set to true, or a classic .NET Framework WinForms project). NuGet will automatically resolve the right asset folder for the target framework you build against, so there is no per-framework DLL to copy or reference by hand.

Install via NuGet

Installing the SpiceLogic WinForms HTML Editor Control NuGet package using Visual Studio NuGet Package Manager UI for a Windows Forms project.

From a terminal in your project directory, run:

dotnet add package SpiceLogic.HtmlEditor.WinForms

Or, if you prefer to edit the project file directly, add this PackageReference inside an ItemGroup in your .csproj:

<ItemGroup>

  <PackageReference Include="SpiceLogic.HtmlEditor.WinForms" Version="*" />

</ItemGroup>

Pin Version to a specific number (for example 9.0.14) for reproducible builds, or leave it floating with * while you are evaluating the trial. The package pulls in every dependency the control needs at design time and at runtime; you do not need to add any other references.

Drag the control from the Visual Studio toolbox

Dragging the WinFormHtmlEditor control from the Visual Studio toolbox onto a Windows Forms designer surface to add the WYSIWYG editor.

After the package has restored, reopen any Windows Form in the designer. The WinFormHtmlEditor control appears in the Visual Studio toolbox automatically — you do not need to use Tools > Choose Toolbox Items, and you do not need to point the toolbox at a per-framework subfolder. Drag it onto the form, then resize, dock, or anchor it the way you would any other WinForms control.

Minimal usage

Running the minimal SpiceLogic WinForms HTML Editor demo showing BodyHtml content rendered at runtime with the default customizable toolbar visible.

Here is a self-contained example. It creates a form, drops a WinFormHtmlEditor on it, sets initial content via the BodyHtml property, and subscribes to the HtmlChanged event so you can react each time the user edits the document:

using System;

using System.Windows.Forms;

using SpiceLogic.HtmlEditor.WinForms;



public class MainForm : Form

{

    private readonly WinFormHtmlEditor _editor = new WinFormHtmlEditor();



    public MainForm()

    {

        Text = "HTML Editor Demo";

        Width = 900;

        Height = 600;



        _editor.Dock = DockStyle.Fill;

        _editor.BodyHtml = "<p>Hello from <b>SpiceLogic</b>!</p>";

        _editor.HtmlChanged += OnHtmlChanged;



        Controls.Add(_editor);

    }



    private void OnHtmlChanged(object sender, EventArgs e)

    {

        // _editor.BodyHtml returns the current body HTML on demand.

        Console.WriteLine(_editor.BodyHtml);

    }



    [STAThread]

    public static void Main()

    {

        Application.EnableVisualStyles();

        Application.Run(new MainForm());

    }

}

That is the entire surface you need to get a working editor on screen. Out of the box the package runs in trial mode, which is fine for evaluation; see the How to License the WinForms HTML Editor page when you are ready to ship.

Next steps

Preview of advanced SpiceLogic WinForms HTML Editor features including toolbar customization, in-place spell checker, and rich content authoring capabilities.
  • Getting and Setting HTML Value — how to load, read, and round-trip document content through BodyHtml, DocumentHtml, header styles, and the change-notification events.
  • Toolbar Customization — how to show, hide, reorder, or override the click behavior of built-in toolbar buttons, and how to add your own.
  • Spell Checker — how to configure the in-place spell checker, switch dictionary engines, and supply your own .dic / .aff files.

Each of those is a separate page in this documentation set.

Last updated on May 14, 2026