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.
精彩评论