Intercepting click event for all controls in an app in C# (WinForms)

前端 未结 4 795
不思量自难忘°
不思量自难忘° 2021-01-02 23:01

I want to make an application to intercept all UI events in all the forms of my application and to write them to a log. This data can than be used to see which controls are

4条回答
  •  礼貌的吻别
    2021-01-02 23:13

    You should be able to achieve what you want with message filters - no direct P/Invoke to Win32-APIs required!

    See the help on the IMessageFilter interface for more info.

提交回复
热议问题