Block/Nullify mouse movement/click in C#

后端 未结 1 510
孤街浪徒
孤街浪徒 2020-12-22 12:42

I am writing an application to fully control the mouse click/movement.

For instance, if I have the application running, form fully transparent, fullscreen, then if I

相关标签:
1条回答
  • 2020-12-22 13:21

    What you are referring to is called mouse capture - and it can be done it both Windows Forms as well as WPF and WinAPI directly.

    Here's the way to do it in WinForms.

    At the WinAPI level you can use the SetCapture( HWND w ) function call.

    0 讨论(0)
提交回复
热议问题