Click event is not firing when I click a control in dynamic usercontrol
问题 I have different controls in my usercontrols. And load usercontrols dynamically in my form UserControl2 usercontrol = new UserControl2(); usercontrol.Tag = i; usercontrol.Click += usercontrol_Click; flowLayoutPanel1.Controls.Add(usercontrol); private void usercontrol_Click(object sender, EventArgs e) { // handle event } The click event is not firing when I click a control in usercontrol. It only fires when I click on empty area of usercontrol. 回答1: Recurse through all the controls and wire up