开发者

How to interact with keypad buttons in my application?

I am developing a Windows CE5.0 application.

That application is to be deployed in a handheld device.

I want my application to print something on pressing a key on the keypad of the device.

Device contains some keys like mobile phone or any other device.

I don't know 开发者_开发知识库how to accept a key input in my application or how to interact with keys.

Please help, thanks.


Use the KeyDown Event.

KeyDown += (o, s) =>
            {
                if (s.KeyCode == Keys.Enter)
                {
                    // do what ever;
                }
            };
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜