Hi,
for finding keywords etc. you can use regex I attached some code for
colorizing lines of course it works with words too:
Regex line = new Regex("(-------------------------------------)");
MatchCollection mcl;
mcl = line.Matches(chatTextBox.Text);
for (int i = 0; i <= mcl.Count; i++)
{
chatTextBox.SelectionColor = System.Drawing.Color.Blue;
chatTextBox.Select (mcl[i].Index,37);
}
Regex userregex = new Regex((this._name.ToString()));
MatchCollection mcu;
mcu = userregex.Matches(chatTextBox.Text);
for (int i = 0; i <= mcu.Count; i++)
{
chatTextBox.SelectionColor = System.Drawing.Color.Blue;
chatTextBox.Select (mcu[i].Index,this.Name.Length);
}

Signature
Mit freundlichen Gr??en -- Regards
Ralph Gerbig
www.ralphgerbig.de.vu
ikea.ralph@web.de
> Hi
>
[quoted text clipped - 15 lines]
> Thanks in advance
> Daisy