Exemple #1
0
 private void SetTxtBoxSN(string text)
 {
     if (this.textBoxSN.InvokeRequired)
     {
         SetSNBoxCallback s1 = new SetSNBoxCallback(SetTxtBoxSN);
         this.Invoke(s1, new object[] { text });
     }
     else
     {
         textBoxSN.Text = text;
         textBoxSN.Focus();
     }
 }
Exemple #2
0
        private void SetTxtBoxSN(string text)
        {
            if (this.textBoxSN.InvokeRequired)
            {
                SetSNBoxCallback s1 = new SetSNBoxCallback(SetTxtBoxSN);
                this.Invoke(s1, new object[] { text });

            }
            else
            {
                textBoxSN.Text = text;
                textBoxSN.Focus();
            }
        }