C#如何在winforms应用程序中隐藏光标? [英] C# How can I hide the cursor in a winforms app?

查看:150
本文介绍了C#如何在winforms应用程序中隐藏光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个触摸屏应用程序,我需要隐藏光标,只要它在主窗体中。

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

任何想法?

推荐答案

我知道这是一个愚蠢的问题!只需输入

I knew this was a stupid question! Simply put

Cursor.Hide();

是我需要的表单构造函数。

is all I needed in the forms constructor.

这篇关于C#如何在winforms应用程序中隐藏光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆