ControlEventHandler

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Back
Top