开发者

How to interact with keypad buttons in my application?

开发者 https://www.devze.com 2023-02-20 10:04 出处:网络
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.

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

精彩评论

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