TextChanged

Topics: Developer Forum, User Forum
Jun 8, 2009 at 1:54 PM

hi,

I want to use TextChanged event on scintillaNet to get a message every time I change the scintilla text, but It does not work here is my code

 

scintilla.TextChanged+=new EventHandler(scintilla_TextChnged);

private void scintilla_TextChnged(object sender, EventArgs e)

{

Console.WriteLine("My text is changed");

}

 

can any one help me??

Thanks in advance.

Developer
Jun 8, 2009 at 2:20 PM

TextChanged should behave like other Contorls  ;-)

Please make sure to search first in the Discussions and then in the Issue Tracker, before you create a new Topic.

Jun 8, 2009 at 3:02 PM

I am sorry but actually I didnot understand a lot from that 

Developer
Jun 9, 2009 at 9:33 AM

Hi I guess you must use the DocuemntChanged Event.

Look here

Jun 9, 2009 at 11:12 AM

Hi, but I think that this event is triggered many times for one text Change !!!

Developer
Jun 9, 2009 at 11:50 AM

Yes it's fired every time the Document is changed, that includes resizing, Style changes, ...

Perhaps you could use the TextInserted & TextDeleted instead of TextChange

Jun 9, 2009 at 1:47 PM

thanks a lot that's what I was looking for, thank you very much :)