Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to highlight text in text box. When user types anything in textbox a colored box should generate around text in textbox. I am not sure if I can do this in normal textbox or I have to use Rich text box for this.

I have seen this thing in yahoo mail When we are trying to write new mail and we add recipients in "To" field, a box appears around contact name.

Kindly suggest..
Thank you
Posted
Updated 7-May-12 21:50pm

1 solution

Whatever close possible in ASP.NET is discussed here, see if anything discussed is inline of what you need: Highlight text in Textbox using JavaScript[^]

If above discussion does not help then you need to use RichTextBox to get your desired behaviour as normal textbox has certain limitation.
 
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