Keyboard event handling in .NET applications by Alfred Mirzagitov

在做智能监控系统时,需要用红外遥控器来操作系统功能,而红外遥控器的SDK提供了将遥控器按键信号转换成电脑键盘按键的功能。

下面的文章就实现了应用程序中的键盘处理功能

     This article shows several different techniques for handling .NET keyboard events in an application

     Whenever a new tool comes out, if it has something to do with building user interfaces, one of the very first questions asked is how to intercept and handle keyboard and mouse events. Experience also shows that the most of the confusion is caused by certain keys, such as the TAB, RETURN, ESCAPE, and ARROW keys rather than character keys since these are usually handled automatically by the OS or the framework.

     This article will walk you through several steps of different complexity and show you how to intercept and handle keystrokes at the form level or at the application level. We will be mostly talking about keyboard keystrokes, although we shall mention mouse events. Mouse event handling is somewhat similar to keyboard events, but at the same time it probably could make a big article of its own.

出处:http://edn.embarcadero.com/article/30129

转载于:https://www.cnblogs.com/simplefrog/archive/2012/07/14/2591800.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值