how to Make the Mouse Freeze c#

前端 未结 6 654
眼角桃花
眼角桃花 2021-01-19 19:33

i want the mouse to freez (cant move) when mouse down thanks

6条回答
  •  鱼传尺愫
    2021-01-19 20:04

    You can't.

    Mouse acts in the OS Layer, not your app... even if you freeze your app, mouse will be able to run.

    You can try to disconnect the mouse driver/port but you do need to ask the user what port the mouse is using as for the OS it's a Input device, just like a pen in a design board and you will not know the one to disconnect.

提交回复
热议问题