Exemplo n.º 1
0
 private void serialPort1_ErrorReceived(object sender, System.IO.Ports.SerialErrorReceivedEventArgs e)
 {
     try
     {
         textBox1.AppendText(e.ToString());
     }
     catch (Exception ex)
     {
         textBox1.AppendText(ex.Message);
     }
 }
Exemplo n.º 2
0
 private void serialArduino_ErrorReceived(object sender, System.IO.Ports.SerialErrorReceivedEventArgs e)
 {
     MessageBox.Show(e.ToString(), "Mensaje de error", MessageBoxButtons.OK, MessageBoxIcon.Error);
 }
Exemplo n.º 3
0
 private void serialPort1_ErrorReceived(object sender, System.IO.Ports.SerialErrorReceivedEventArgs e)
 {
     dataIn.BeginInvoke(new Action(() => { spLabel.Text = "ERROR: " + e.ToString(); }));
 }
Exemplo n.º 4
0
 private void serialPort_ErrorReceived(object sender, System.IO.Ports.SerialErrorReceivedEventArgs e)
 {
     MessageBox.Show(e.ToString());
 }