ListBox lst = new ListBox(); lst.Items.Add("item1"); lst.Items.Add("item2"); lst.SelectedIndex = 0; string item = lst.SelectedValue;
ListBox1.SelectedValue
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)