コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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;
 }