private void port_DataReceived_1(object sender,SerialDataReceivedEventArgs e) { InputData = myComPort.ReadExisting(); // MessageBox.Show(InputData); //rtbIncoming.Text = InputData; //rtbIncoming.SelectionStart = rtbIncoming.Text.Length; //rtbIncoming.ScrollToCaret(); if (InputData != String.Empty) { this.BeginInvoke(new SetTextCallback(SetText), new object[]{ InputData}); } //added 05/12/2023 /* MessageBox.Show("here!");*/ btnOpen_Click(null, null); //causes a bang! }
Invoke
UI
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)