This project is read-only.


The following guide is provided for users who wish to use the ScintillaNET control in their projects. This guide assumes the development platform is Visual Studio® 2010.

Table of Contents

Downloading and Unzipping

The ScintillaNET team regularly publishes new releases as features are added and bugs are fixed. These releases can easily be obtained from the ScintillaNET Downloads page on CodePlex. Files are distributed in both binary and source versions and then zip compressed.
  1. Download the binaries recommended release package from the ScintillaNET Downloads page by clicking the appropriate link and selecting I Agree from the license terms-of-use popup. (Other releases and versions maybe be available but we encourage you to download the "binaries" version of the recommended release unless you have a specific reason not to).
  2. Unzip the package using a third-party tool or by right-clicking on the file/icon in Windows Explorer and selecting Extract All... from the context menu and following the wizard.
  3. Once unzipped you'll want to place the files in a location where they can easily be referenced by any of the projects you wish to use ScintillaNET with. For the purposes of this guide, we'll assume that the target directory is C:\ScintillaNET.
    1. If the previous steps were completed successfully you should have a folder on your computer with at least the files ScintillaNET.dll, SciLexer.dll, and SciLexer64.dll. Other license files and documentation may be included as well.

Configuring the Search Path

Failing to configure the search path or doing it incorrectly trips-up many users. ScintillaNET is a wrapper around an umanaged DLL and uses Platform Invoke (P-Invoke) calls from the managed ScintillaNET.dll to the native SciLexer.dll or SciLexer64.dll to perform its magic. In order for that to work the SciLexer.dll and SciLexer64.dll must be in one of the places Windows uses to locate DLLs. More information about the Search Path Used by Windows to Locate a DLL can be found on the MSDN website. Of the many ways that Windows can use to find the SciLexer.dll and SciLexer64.dll, the instructions below illustrate how to modify your PATH environmental variable.
  1. Right-click on the My Computer icon on the Desktop or in the Start Menu and select Properties from the context menu.
  2. Select the Advanced tab.
  3. Click the Environment Variables button.
  4. Add the "C:\ScintillaNET" folder (assuming that is the location of the downloaded files, or substitute an alternate location) to the Path variable in the User Variables list.
    1. If there is no Path variable in the User Variables list, add one by clicking New and inputing the value "Path" in the Variable Name field and "C:\ScintillaNET" in the Variable Value field.
    2. If there is already a Path variable in the User Variables list, select the Path variable and then click Edit to modify. Append "C:\ScintillaNET" to the end of the Variable Value field separating it from any previous value(s) with a semicolon.
  5. Close all open Visual Studio or Visual C# applications and restart them for the changes to take effect.

Adding to the Visual Studio Toolbox

Adding the ScintillaNET control to the Visual Studio (or Visual C# Express Edition) toolbox makes adding it to one of your forms as easy as dragging and dropping.
  1. With the Windows Forms designer open in Visual Studio, right-click on the ToolBox window and select Choose Items... from the context menu.
  2. From the Choose Toolbox Items dialog, select the .NET Framework Components tab and then click the Browse... button.
  3. Navigate to the location of the ScintillaNET.dll file on your system ("C:\ScintillaNET\ScintillaNET.dll" in our example) and after selecting the file, click the Open button.
  4. When the Open dialog closes, one or more ScintillaNET components will have been added to the list.
  5. Ensure that the entry named "Scintilla" is checked and then click the OK button.
    1. The Scintilla control should now be listed in the Toolbox. Simply drag it onto a form in the designer to begin using it.

Target the full .NET Framework

At the time ScintillaNET first start development there was no concept of targeting Client Profile versus full .NET Framework. Because of that ScintillaNET has dependencies that prevent it from running on the Client Profile (namely we depend on System.Design). To target the full framework profile:
  1. Right-click on your startup project from the Visual Studio Solution Explorer and select Properties.
  2. From the Application tab of the project properties page change the Target framework field to .NET Framework 4.
    1. ScintillaNET can also run on the 2.0, 3.0 and 3.5 versions of the framework.
  3. Save the changes to the project properties.

Last edited May 21, 2012 at 4:25 AM by jacobslusser, version 9


KarlLam Feb 5, 2013 at 9:47 AM 
I am using Visual Studio 2012. In setting Target Framework is .NET Framework 4.5 OK with ScintillaNet?

kanaida Feb 2, 2013 at 12:13 AM 
I can't drag and drop it onto the form from the toolbox.
Cannot load the 'SciLexer.dll' module into memory ---> The specified file cannot be found at SchintillaNET.Scintilla.LoadModule() in 'C:\users\jslusser\Projects\ScintillaNET\Releases\2.5\Scintilla.cs:line 669 (and 2508, 3688)

wicked_wolf Apr 14, 2011 at 6:30 PM 
go to properties, put the target framework on .NET Framework 4.0, so not the client profile, so you get access to the System.Design assembly

Trappingnoobs Apr 8, 2011 at 7:00 PM 
Same @Erny

ibito Jan 25, 2011 at 4:55 AM 
I have also the same proble @Erny

Erny Sep 15, 2010 at 4:27 PM 
ScintillaNet component does not compiles in Visual Studio 2010 C# Express
in .NET Framework 4.0 Client Profile, which is turned by default