Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Different colors for individual text within TextBox?

$
0
0

Hi guys,

I need to be able to change the color of certain lines of text within a TextBox. I've seen on other's Forum questions that 'multiple colors in textbox are not supported'.

The use of the TextBox is just to display text, nothing more. It would be read-only, without the ability for the user to enter text.

I wondered if their was a good alternative?

The functions I need are:

a. Display text, which will be updated frequently, whenever a User presses a button.
b. Display key lines of text in a different color.
c. Auto-scroll to the bottom of the TextBox when each update is made.

I read the suggestion elsewhere to use a RichTextBox.

(Microsoft's RichTextBox appears to be desktop development rather than ASP.NET, so I understand a 3rd party one must be used.)

At the recommendation of another's Forum question, I tried www.freetextbox.com/ but couldn't get it to work - I think because it only goes up to .NET 4 but I'm using 4.5.

Any Ideas on how to get the functions I require?

Again, it doesn't matter if it's not a TextBox, it's just the functions I need.

Thanks,

Dan :)


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>