G Guest Nov 21, 2003 #1 Hi Well, I want to show a Message when I insert a checkBox in a Panel control.
1 100 Nov 21, 2003 #2 Ok, then. 1. In your form declare a methods with the following prototype private void panel_ControlAdded(object sender, ControlEventArgs e) { if(e.Control is CheckBox) { //show the message } } 2. In the form constructor hook the panel's ControlAdded event panel.ControlAdded += new ControlEventHandler(panel_ControlAdded); where *panel* is a reference to the panel, which you want to monitor. HTH B\rgds 100
Ok, then. 1. In your form declare a methods with the following prototype private void panel_ControlAdded(object sender, ControlEventArgs e) { if(e.Control is CheckBox) { //show the message } } 2. In the form constructor hook the panel's ControlAdded event panel.ControlAdded += new ControlEventHandler(panel_ControlAdded); where *panel* is a reference to the panel, which you want to monitor. HTH B\rgds 100