views:

67

answers:

1

for example dropdown box contain three things Simon,Jaison,Rahul..if you click Jaison will generate jaison as a text,,or Simon will generate Simon as a text

+1  A: 

Your question is somewhat unclear, but if you're trying to get a string from the currently selected item (when the selection changes), then...

Handle the SelectedIndexChanged event:

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
    string selectedText = comboBox1.SelectedItem.ToString();

    // Do whatever you want to do with it, for example...
    label1.Text = selectedText;
}
Daniel LeCheminant