hi
how could i catch event from combobox generated during run time?
i mean join dynamic combobox with event handler where combobox generated at run time,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhay ShankerPosted Dec 27, 2013, 2:00 AM
ComboBox myNewComboBox = new ComboBox();
myNewComboBox.Items.Add("addYourItems");
myNewComboBox.SelectedIndexChanged += new EventHandler(myNewComboBox_SelectedIndexChanged);
flowLayoutPanel1.Controls.Add(myNewComboBox);
void myNewComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
MessageBox.Show("you will implement something here");
}
VulpesPosted Dec 26, 2013, 6:03 PM