Firing an event whenever a control is added

  • Thread starter Thread starter AndrewDucker
  • Start date Start date
A

AndrewDucker

Is there an event which fires whenever a control is added to a
ControlCollection? There doesn't seem to be, but I'm wondering if
there's a kludge anyone's come up with to spot whenever a control is
added?

Cheers,

Andy D
 
Dear Andrew,
The event is called ControlAdded (inherited from
Control) and it occurs when a new control is added to the
Control.ControlCollection.
I hope it helps

Regards,
Naveed Ahmad Bajwa
http://bajoo.blogspot.com/
 
Back
Top