Ejemplo n.º 1
0
 private void ResetTextBox(String text)
 {
     if (this.richTextBox1.InvokeRequired)
     {
         ResetTextBoxDelegate resetTextBoxDelegate = ResetTextBox;
         this.richTextBox1.Invoke(resetTextBoxDelegate, new object[] { text });
     }
     else
     {
         this.richTextBox1.Text = text;
     }
 }
Ejemplo n.º 2
0
 private void ResetTextBox(RichTextBox txtbox)
 {
     if (txtbox.InvokeRequired)
     {
         ResetTextBoxDelegate resetTextBoxDelegate = ResetTextBox;
         txtbox.Invoke(resetTextBoxDelegate, new object[] { txtbox });
     }
     else
     {
         txtbox.Text = "";
     }
 }
Ejemplo n.º 3
0
 private void ResetTextBox(RichTextBox txtbox, string message)
 {
     if (txtbox.InvokeRequired)
     {
         ResetTextBoxDelegate resetTextBoxDelegate = ResetTextBox;
         txtbox.Invoke(resetTextBoxDelegate, new object[] { txtbox });
     }
     else
     {
         txtbox.Text = "send>>" + message;
     }
 }