delegate void SetTextAppendCallback(string Text); private void AppendString(string text) { if(this.results.InvokeRequired) { SetTextAppendCallback d = new SetTextAppendCallback(AppendString); Invoke(d, new object[] { text }); } else { results.AppendText(text); } } AppendString("<" + name + "> " + msg + "\r\n");