title: Listbox index display on Label or Textbox
body: <p>Does any one know how to use following commands with  Listbox SelectedIndexChanged event. please let me know. i took this example from the internet and i just want to know how to use it with listbox instead of Listview.</p>
  
  <p>when I don't get the index option after the selected item[0] on listbox  . please help me. 
  Thankx guys</p>
  
  <pre><code> private void listView1_SelectedIndexChanged(object sender, EventArgs e)
    {
      textBox1.Text = people[listView1.SelectedItems[0].Index].Name;
    }
  }
  </code></pre>