List Box Add and Show The Selected Value

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 744
List Box Add and Show The Selected Value
================================================
private void button1_Click(object sender, EventArgs e)
{
listBox1.Items.Add(textBox1.Text);
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
MessageBox.Show(listBox1.Text);
}

Comments or Responses

Login to post response