title: C#: How to get the index of the selected item(and the text) in ListBox
body: <p>I have a listbox (detailed view). How do I get the index of the selected item?</p>
  
  <p>I also eventually want to get the text at the index, but that should be easy.</p>