How to install Scintilla for a text box in a Windows C # form

I have a Windows form with a text box in which the user can write a Python script.

I use Scintilla in the form, but I want its area to be a text box. Can I associate Scintilla with a text box?

Below is the code I tried:

this.scintilla2.ConfigurationManager.Language = "python"; this.scintilla2.Dock = System.Windows.Forms.DockStyle.Fill; this.scintilla2.Location = new System.Drawing.Point(600, 430); this.scintilla2.Name = "scintilla2"; this.scintilla2.TabIndex = 0; this.Controls.Add(this.scintilla2); 
+5
source share
1 answer

You can use scintillaNET

Download the component, unzip it and add it to your "ToolBox" in Visual Studio. Add the path to the Scintilla folder to "Environment Variables" and you are ready to use it in your project.

Here you can find sample source code.

0
source

Source: https://habr.com/ru/post/1206574/


All Articles