title: Substring Function not works on .net cf?
body: <p>net CF </p>
  
  <p>I need to use substring to capture the mid of a string.</p>
  
  <pre><code>txtpart.Text = "ab12345678cde";
  string item = txtpart.Text.Substring(2,8);
  </code></pre>
  
  <p>Which the output should be 12345678.</p>
  
  <p>But it always throws this Exception</p>
  
  <blockquote>
    <p>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.</p>
  </blockquote>
  
  <p>Is there any function other than substring?</p>