Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. void AppendChatBox (string message)
  2. {
  3. // if an invoke is required (we are not in the gui thread)
  4. if (this.InvokeRequired)
  5. // invoke the same method with the same parameters again, but do it in the gui thread
  6. this.Invoke ((Action<string>)AppendChatBox, message);
  7.  
  8. ChatBox.Text += message + Enviroment.NewLine;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement