title: Get Selected Value of SelectedItems in a TextBox (separated with Commas) from MultiSelect ListBox?
body: <p>Please tell me how can I get <code>ValueMember</code> of <code>ListBox</code> <code>SelectedItems</code>? I have read many tutorials but still I am unable to solve it. Any help will be greatly appreciated.</p>
  
  <pre><code>int c = subjects_Listbox.Items.Count - 1;
  for (int i = 0; i &gt;= 0; i--)
  {
      if (subjects_Listbox.GetSelected(i))
      {
          txt.Text += subjects_Listbox.SelectedIndices[i].ToString();
          txt.Text += ", ";
      }
  }
  </code></pre>