Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AppendChatBox (string message)
- {
- // if an invoke is required (we are not in the gui thread)
- if (this.InvokeRequired)
- // invoke the same method with the same parameters again, but do it in the gui thread
- this.Invoke ((Action<string>)AppendChatBox, message);
- ChatBox.Text += message + Enviroment.NewLine;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement