Capturing mouse events from every component

前端 未结 4 1236
醉酒成梦
醉酒成梦 2020-11-28 06:56

I have a problem with MouseEvents on my WinForm C# application.

I want to get all mouse clicks on my application, but I don\'t want to put a listener in eve

4条回答
  •  伪装坚强ぢ
    2020-11-28 07:49

    Take a look at this article. It recursively hoooks all the control events and broadcasts them. You could also override WndProc in your form.

提交回复
热议问题