Detecting when a MdiList Child MenuItem is selected
-
After setting MdiList property to true for a main menu selection and opening several MdiChild forms, a list of child forms with the active form checked is displayed when I click on the main menu selection. How can I detect (capture) when one of the MdiChild menu selections is clicked or selected? Any help or direction would be appreciated. Kyle
-
After setting MdiList property to true for a main menu selection and opening several MdiChild forms, a list of child forms with the active form checked is displayed when I click on the main menu selection. How can I detect (capture) when one of the MdiChild menu selections is clicked or selected? Any help or direction would be appreciated. Kyle
You need to add the following event to your parent form: this.MdiChildActivate += new System.EventHandler(this.Form1_MdiChildActivate); then here is the code for the handler. private void Form1_MdiChildActivate(object sender, System.EventArgs e) { MessageBox.Show (this, sender.ToString()); } HTH