Intercepting Container


R

ralphsieminsky

I would like to write a Control container
that could intercept events (e.g mouse click,
key pressed..) sent to its contained control
and decide to forward the event to the control
or not.

Seems to be a simple requirement, but from
the MSDN Windows Forms documentation I fail
to see how this could be achieved.

Could anyone advise on how to achieve this ?

As a side question: is there somewhere (web,
book) an in-depth description of the Windows
Forms event model ? I mean not an explanation
of how to do this.Click+=blah, but rather a
detailed explanation of how Windows Forms
handles the windows messages etc.

Many thanks,
Ralph
 
Ad

Advertisements


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

Top