Example #1
0
 private void TextSet(string str)
 {
     if (this.InvokeRequired)
     {
         TextSetCallback d = new TextSetCallback(TextSet);
         this.Invoke(d, new object[] { str });
     }
     else
     {
         textBox3.Text = str;
     }
 }
Example #2
0
 private void ComboSet(string str)
 {
     if (this.InvokeRequired)
     {
         TextSetCallback d = new TextSetCallback(ComboSet);
         this.Invoke(d, new object[] { str });
     }
     else
     {
         comboBox1.SelectedItem = str;
     }
 }