Hello,
When I am using the `RichTextBox` control and attach the `TextChanged` event, if I make changes directly in the frontoffice, the event is fired 1 time for each change, but if I set the text in code like ```_myBox.text = "test"; ``` the event is fired 6 times.
Has this happened to anyone? Can you suggest a solution?
Thanks in advance.
Comments: ** Comment from web user: BoucherS **
When I am using the `RichTextBox` control and attach the `TextChanged` event, if I make changes directly in the frontoffice, the event is fired 1 time for each change, but if I set the text in code like ```_myBox.text = "test"; ``` the event is fired 6 times.
Has this happened to anyone? Can you suggest a solution?
Thanks in advance.
Comments: ** Comment from web user: BoucherS **
The RichTextBox derives from System.Windows.Controls.RichTextBox
Based on this :
http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.textboxbase.textchanged(v=vs.110).aspx
The RichTextBox from windows will fire the TextChange event when any content or formatting changes. Changing the Text will implicitly format the RichTextBox.