title: Read characters from serial port in c#
body: <p>Hello I am using Read() method to read 10 characters say 0123456789 from serial port. Actually the characters are sent by a PIC Micro-controller.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>serialPort1.PortName = "com4";
  serialPort1.BaudRate = 9600;
  serialPort1.Open();
  char[] result = new char[10];
  serialPort1.Read(result, 0, result.Length);
  string s = new string(result);
  MessageBox.Show(s);
  serialPort1.Close();
  </code></pre>
  
  <p>When I run the code, a message box shows up and displays only the first character. "0" alone is displayed in the message box.</p>
  
  <p>Where have i gone wrong ??</p>