title: Converting char-array to System::String^
body: <p>As part of my code, I need to output in a textBox a string of 8 characters that have been encrypted. So I need to transform an array of 8 characters to System <code>String^</code>. I tried the following:</p>
  
  <pre><code>char result[8];
  for(int i=0; i&lt;8; i++)
  {
      result[i] = (char)DecimalCypher[7-i];
  }
  
  textBox3-&gt;Text = gcnew String(result);
  </code></pre>
  
  <p>However, the textBox is showing more than 8 characters. 8 characters will change depending on the input, and the remaining will stay as is. 
  Example,
  If my input is </p>
  
  <blockquote>
    <p>andrew12</p>
  </blockquote>
  
  <p>, the output in the textBox is </p>
  
  <blockquote>
    <p>T)W+"Ziz<strong>BVÎ pé</strong></p>
  </blockquote>
  
  <p>However if my input is </p>
  
  <blockquote>
    <p>andrew33 , the output will be : 
    A1-1`+Ta<strong>BVÎ pé</strong></p>
  </blockquote>
  
  <p>The last 6 characters are the same.. but should not be here in the first place.
  It is the first 8 characters that matter!</p>
  
  <p>Any idea why is this happening?</p>