title: get selected item id in listbox
body: <p>How do I get the select item in a listbox and pass it on to another class. At the moment it does display the item id.</p>
  
  <pre><code> private void moveup_Click(object sender, EventArgs e)
          {
              for (int i = 0; i &lt; listBox1.SelectedItems.Count; i++)
              {
                  MessageBox.Show(listBox1.SelectedItems[i].ToString());
  
              }
          }
  </code></pre>
  
  <p>any help appreciated. </p>