private void ModifyTextBox2(String s) { if (textBox1.InvokeRequired) { ModifyTextBoxDelegate d = new ModifyTextBoxDelegate(ModifyTextBox2); this.Invoke(d, s); } else { textBox5.Text += "clien :" + s + " connected" + "\r\n"; } }
private void ModifyTextBox(String s) { if (textBox1.InvokeRequired) { ModifyTextBoxDelegate d = new ModifyTextBoxDelegate(ModifyTextBox); this.Invoke(d, s); } else { textBox1.Text += s + "\r\n"; } }