简体   繁体   English

禁用鼠标光标(Windows 7/10)

[英]Disable Mouse Cursor (Windows 7/10)

I have a touch screen and I want to disable or hide the mouse cursor for all windows screens and not only for my application screen. 我有触摸屏,我想禁用或隐藏所有Windows屏幕的鼠标光标,而不仅仅是我的应用程序屏幕。

How can I do it programmatically with C/C++ or C#? 如何使用C / C ++或C#以编程方式进行操作? or with command line? 或使用命令行?

According to MSDN, there is Cursor.Hide() method in c#. 根据MSDN,c#中有Cursor.Hide() 方法

If you use WPF application, then you have to set the cursor property to Cursor = Cursors.None; 如果使用WPF应用程序,则必须将cursor属性设置为Cursor = Cursors.None;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM