in my window application i have list box. when i select any of the item in listbox i have to display in text box that particular item please help me
A:
You can handle the SelectedIndexChanged event like this:
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
textBox1.Text = ((ListBox) sender).SelectedItem.ToString();
}
sgrassie
2009-09-01 12:19:46