C# 如何在 winforms 应用程序中隐藏光标?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/457360/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 04:07:22 来源:igfitidea点击:
C# How can I hide the cursor in a winforms app?
提问by TK.
Im developing a touchscreen app and I need to hide the cursor whenever it is within the main Form.
我正在开发一个触摸屏应用程序,只要它在主窗体中,我就需要隐藏光标。
Any ideas?
有任何想法吗?
采纳答案by TK.
I knew this was a stupid question! Simply put
我知道这是一个愚蠢的问题!简单的说
Cursor.Hide();
is all I needed in the forms constructor.
是我在表单构造函数中所需要的。