开发者

C# WindowsCE.Forms InputPanel (SIP) : How to make the enter key to dispose the the panel?

开发者 https://www.devze.com 2023-02-19 08:32 出处:网络
I am tr开发者_开发知识库ying to make the textbox\'s GotFocus event to pop-up WindowsCE.Forms InputPanel.

I am tr开发者_开发知识库ying to make the textbox's GotFocus event to pop-up WindowsCE.Forms InputPanel. The system will be running on PDA, so I needed SIP. I made LostFocus event to dispose (close) the panel, but I also want to make the enter key to close the panel as a sign of "done". I looked up MSDN and many other tutorial on the web, but I couldn't find any useful help.

Could anyone help me on this problem?

Thanks in advance,


Set the Form's KeyPreview property to true, add a handler for the Enter key and call this.Close() when you see it.

0

精彩评论

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