开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜