private void Log(LogMsgType msgtype, string msg,RichTextBox rtb)
{
rtb.Invoke(new EventHandler(delegate
{
rtb.SelectedText = string.Empty;
rtb.SelectionFont = new Font(rtb.SelectionFont, FontStyle.Bold);
rtb.SelectionColor = LogMsgTypeColor[(int)msgtype];
rtb.AppendText(msg);
rtb.ScrollToCaret();
}));
}
And I have many RichTextBoxes and i want to call the method Log(blabla,blabla,rtbSensor1); It's not working, but I need to know if it's possible to send this kind of parameter, or if someone have a better idea...

New Topic/Question
Reply




MultiQuote







|