检查盖锁是否打开? [英] Check whether the capslock is on or not?

查看:97
本文介绍了检查盖锁是否打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当前正在从事智能设备应用程序.有一个文本框.当该文本框获得焦点时,我需要检查capslock是否打开,并在工具提示中显示该消息.



谢谢.

Hi all,

Currently am working in smart device application. there is one textBox. when that textbox get the focus i need to check the capslock is on or not and show that message in tooltip.



Thanking you.

推荐答案

Console.CapsLock


http://msdn.microsoft.com/en-us/library/system. console.capslock.aspx#Y0 [ ^ ]


http://msdn.microsoft.com/en-us/library/system.console.capslock.aspx#Y0[^]

Control.IsKeyLocked(Keys.CapsLock))


http://msdn.microsoft.com/en-us/library/system.windows.forms.control.iskeylocked.aspx [ ^ ]

这些都可以解决问题


http://msdn.microsoft.com/en-us/library/system.windows.forms.control.iskeylocked.aspx[^]

Either of those would do the trick


这篇关于检查盖锁是否打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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