Delegate for serial port receive event to .Net controls

  • Thread starter Thread starter JKSCooper
  • Start date Start date
J

JKSCooper

Guest
How/where do put a delegate to place the data in "indata" into a control on the main thread/form,,,
private void OutputPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
System.IO.Ports.SerialPort sp = (System.IO.Ports.SerialPort)sender;
string indata = sp.ReadExisting();


}

Continue reading...
 
Back
Top