View Single Post
  #2 (permalink)  
Old January 4th, 2007, 02:34 AM
Eyob_the_pro Eyob_the_pro is offline
Registered User
Join Date: Jan 2007
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

use this to access to selected item from a list box.

       string item = listBox1.SelectedIndex.ToString();

if selectionMode is MultipleSimple or MultipleExtended you can use this to get a collection of the selected items.

       string items = listBox1.SelectedItems;

Reply With Quote