Example #1
0
 private void BlueServer_DataReceived(object sender, BluetoothServerEventArgs e)
 {
     if (InvokeRequired)
     {
         this.Invoke(new Action(() =>
         {
             richTextBox1.AppendText(e.Message);
         }));
     }
 }
Example #2
0
        private void BlueServer_DataReceived(object sender, BluetoothServerEventArgs e)
        {
            if (InvokeRequired)
            {
                string c = e.Message;

                this.Invoke(new Action(() => {
                    textBox2.Text = c;
                }));
            }
        }