Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form that has many controls (textbox, dropDown, single popup). When I click on the submit button it will go to the approver. If the approver reject this then the form will come to me. Then I edit the textbox and select a different value from the dropdown and submit my request to the approver. When the record goes to the approver then the editd text of the textbox colour should be changed.
Posted

1 solution

You can't change just the edited text colour in a textbox: it only has one foreground and one background colour. So whatever colour you apply to the textbox affects all the text in it simultaneously. To "highlight" just the edited text, you would need to use a RichTextBox or create your own TextBox replacement.

If you want to change the whole textbox, then that's simple: just set the TextBox.ForeColor and / or TextBox.BackColor property for the altered control.
 
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