private void BlueServer_DataReceived(object sender, BluetoothServerEventArgs e) { if (InvokeRequired) { this.Invoke(new Action(() => { richTextBox1.AppendText(e.Message); })); } }
private void BlueServer_DataReceived(object sender, BluetoothServerEventArgs e) { if (InvokeRequired) { string c = e.Message; this.Invoke(new Action(() => { textBox2.Text = c; })); } }