I have a listbox of names, I want to click one of the names so that it is highlighted and then click a button that runs some code for the selected item. How do I call this selected item?
private void btnEcho_Click(object sender, EventArgs e)
{
listbox1.SelectedItem......
}
Many thanks