Is there a way to create a new line without causing the bullet to change colour. I have a bullet followed by a coloured text, but when I do Environment.NewLine it will change the bullets colour (which was originally black). Is there a way to fix this?
And here is the code which I am currently using for Eagle Earth, which shows the text when it sends or receives a message in a conversation.
private void PrintText(Contact c, TextMessage message)
{
if (ConvoChat.Text != string.Empty) ConvoChat.AppendText(Environment.NewLine);
if (lastsent != c.Name)
{
ConvoChat.SelectionBullet = false;
ConvoChat.SelectionColor = c.Mail == _conversation.Messenger.Owner.Mail ? Color.Blue : Color.Black;
if (_contact.Status != PresenceStatus.Offline) ConvoChat.AppendText(c.Name + " says:" + Environment.NewLine);
else ConvoChat.AppendText(c.Name + " (" + DateTime.Now.ToLongTimeString() + ")" + " says:" + Environment.NewLine);
lastsent = c.Name;
}
ConvoChat.SelectionBullet = true;
ConvoChat.SelectionColor = message.Color;
ConvoChat.SelectionFont = new Font(message.Font, 10f);
ConvoChat.AppendText(message.Text);
ConvoChat.SelectedText = string.Empty;
}
Thanks :)


Sign In
Create Account

Back to top









