title: SerialDataReceivedEventHandler not working c#
body: <p>I'm trying to connect to arduino with C# program in windows forms.
  I can send data from c# to the arduino but I want to get data from the arduino to the C# program.</p>
  
  <p>I've tried the SerialDataReceivedEventHandler, but I don't get the data after the form is built...</p>
  
  <p>what can I do?</p>
  
  <pre><code>       public Form1()
      {
          InitializeComponent();
          Init();
  
      }//end form 1
  
      private void Init()
      {
          try
          {
              arduinoPort = new SerialPort();
              arduinoPort.BaudRate = 9600;
              arduinoPort.PortName = "COM4";
              arduinoPort.Handshake = Handshake.None;
              arduinoPort.RtsEnable = true;//request to send true
              arduinoPort.DtrEnable = true;//arduino can send messages to the c# program
              arduinoPort.DataReceived += new SerialDataReceivedEventHandler(GetFromArduino);               
              arduinoPort.Open();
          }//end try
  
          catch (Exception ex) { MessageBox.Show(ex.Message); }
  
      }//end init
  
  
      private void GetFromArduino(object sender, SerialDataReceivedEventArgs e)
      {
          //string arduinoInputString = arduinoPort.ReadLine();
          //Invoke(new Action(() =&gt; label1.Text = arduinoInputString));
          MessageBox.Show("does it work?");
      }//end get from arduino
  </code></pre>