Change color of one line

plad611
02-02-2008, 07:07 PM
Is it possible to make the forecolor of a textbox a different color for each line?

I am working on an extensive chat program that has many different interfaces. One interface is a DOS interface, but I want the user to be able to distinguish which lines of text are his and which are his contacts' (I don't want to use a username in this interface). I want to make it so that your lines are blue and the other user's lines are red, is that possible?

Thanks!

mkaras
02-02-2008, 09:31 PM
All of the text in the TextBox control shares the same ForeColor property.

There is a control called the Rich Text Control that is a multiline text control that supports making texts in multiple colors.

Here are some places on the forum that talk about this control:
http://www.xtremevbtalk.com/showthread.php?t=292706
http://www.xtremevbtalk.com/showthread.php?t=290389
http://www.xtremevbtalk.com/showthread.php?t=291851

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum