void SerialComPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { ResultadoBuffer = SerialComPort.ReadExisting(); FundDelegate EnviaTextBox = new FundDelegate(EscreveTXT); EnviaTextBox.Invoke(ResultadoBuffer); }
public void EscreveTXT(string a) { if (this.txtRecepcao.InvokeRequired) { FundDelegate d = new FundDelegate(EscreveTXT); this.Invoke(d, new object[] { a }); } else { this.txtRecepcao.Text += a; } }