private void SetChatMessage(string text) { if (RTBChatText.InvokeRequired) { try { SetChatWindow d = new SetChatWindow(SetChatMessage); this.Invoke(d, new object[] { text }); } catch (Exception e) { } } else { RTBChatText.Text += text; } }
private void SetChatMessage(string text) { if (RTBChatText.InvokeRequired) { try { SetChatWindow d = new SetChatWindow(SetChatMessage); this.Invoke(d, new object[] { text }); } catch (Exception e) { } } else RTBChatText.Text += text; }