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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top