Articles in this section
Category / Section

How to detect when WinForms SyntaxEditor (EditControl) text content is modified?

1 min read

LineChanged event

The text changed in EditControl can be notified through LineChanged event. Through this event you can also check whether the text is inserted or deleted by using the following code examples.


Private void editControl1_LineChanged(object sender, TextChangedEventArgs e)
   MessageBox.Show("Line Changed event " + e.Type);



Private Sub editControl1_LineChanged(sender As Object, e As TextChangedEventArgs)
   MessageBox.Show("Line Changed event " + e.Type)
End Sub



Reference link:

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment