Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
For several .net pages I am looking for an object that allows you to track changes within the field.
The field would probably be a multi line text box.
What is desired is when the user makes a change in this field, the replaced text would be lined out or a different color, and the new text in some new color.

Does some one have a custom control that does this.
Posted
Comments
[no name] 26-Aug-14 14:08pm    
I doubt it.
ZurdoDev 26-Aug-14 14:42pm    
I've never seen this so I doubt there is a control. You can of course build one if you know programming.
Kschuler 26-Aug-14 15:21pm    
Research Custom Controls and the RichTextBox control.
Sergey Alexandrovich Kryukov 26-Aug-14 16:01pm    
This is quite possible, but entirely depends on what UI you are using. If you say "TextBox", you should indicate: which one? There are completely different unrelated types under this name. At least provide full type name at least once.
—SA

1 solution

I think you will have to build your own. Shouldn't be too difficult using the OnTextChange event. Just check for all your rules in the event method and replace the text as the user is typing. However if you wish to have coloured text and such I think you will probably need to use a RichTextBox instead. It could be slow depending on how many colouring rules you have and how long the text is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900