Howto capture all control creation and destruction in .NET forms based application

Posted by s_rajasekar on Stack Overflow See other posts from Stack Overflow or by s_rajasekar
Published on 2010-05-31T21:47:26Z Indexed on 2010/05/31 21:53 UTC
Read the original article Hit count: 155

Filed under:

I have a use case where any text box created in the application should be handled and some events should be listened to. I checked the ControlCollection, it does not seem to have a "created" or "modified" events. Also MessageFilter could not receive any create, or destroy events. Is this an optimal way to receive messages or windows hook will be the only alternative?

© Stack Overflow or respective owner

Related posts about winforms