separate a string in c#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1219094/separate-firstname-and-lastname-from-fullname-string-in-c">Separate firstname and lastname from fullname string in C#</a>  </p>
</blockquote>



<p>I want to split a string which is like lastname, firstname. I only need the first name how to do that. How to split the string</p>

<pre><code>   for (int counter = 0; counter &lt; ListBoxMembers.Items.Count; counter++)
    {
        string FirstName = ListBoxMembers.Items[counter].Value;
</code></pre>

<p>It takes the whole string i just need firstname</p>
