public void updateTextBox(String str) { if (this.textBox1.InvokeRequired) { delegateUpdateTextBox ut = new delegateUpdateTextBox(updateTextBox); this.Invoke(ut, str); } else { textBox1.Text = str; } }
public void updateTextBox(string text) { if (this.InvokeRequired) { delegateUpdateTextBox deleg = new delegateUpdateTextBox(this.updateTextBox); this.Invoke(deleg, new object[] { text }); } else { this.txt_ajouterpj.Text = text; } }