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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Dec 26, 2013, 1:03 PM EST
Abhay ShankerRank #375 · 6.7K reputationPosted Dec 26, 2013, 9:00 PM EST
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");
}