hi, thanks, but the problem should be that in my code there is not event handlers, i have put the control (working) and the code for the event, but the only thing i do is initialize the control
code:
private void Form1_Load(object sender, EventArgs e)
{
// Get the project path
projectPath = Path.GetFullPath(Path.GetDirectoryName(Application.ExecutablePath) + @"\..\..\");
languagePath = projectPath + @"Languages\";
// Load from XML
editor.Document.LoadLanguageFromXml(languagePath + "ActiproSoftware.CSharp.xml", 0);
// Load the reflection ImageList
reflectionImageList = SyntaxEditor.ReflectionImageList;
}
/// <summary>
/// Occurs before a key is typed.
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">Event arguments.</param>
private void editor_KeyTyping(object sender, ActiproSoftware.SyntaxEditor.KeyTypingEventArgs e)
{
// Add status message
// this.WriteLine("KeyTyping: " + e.ToString());
if (e.KeyChar == '(')
{