C# How can I hide the cursor in a winforms app?

别等时光非礼了梦想. 提交于 2019-12-21 07:09:42

问题


Im developing a touchscreen app and I need to hide the cursor whenever it is within the main Form.

Any ideas?


回答1:


I knew this was a stupid question! Simply put

Cursor.Hide();

is all I needed in the forms constructor.



来源:https://stackoverflow.com/questions/457360/c-sharp-how-can-i-hide-the-cursor-in-a-winforms-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!