How to receive all events of control to my class ?


I want to get some method in my class object that receives all delegate calls of some control,

or like OnCmdMsg() in MFC
to have method that receives all controls call in a form,
so I can find which control created message, and what is that message by some identifier.

How to make it

thanks you



Answer this question

How to receive all events of control to my class ?

  • Stoober

    You can overload the WndProc of a .NET control, which means you'll see all messages.



  • How to receive all events of control to my class ?