Every day is wonderful

分享与创新 并大胆的去尝试新鲜事物。。。。

M8中C#调用虚拟键盘。。。。

1、往窗口拖一个InputPanel
2、在TextBox的Gotfocus事件中加入:inputPanel.Enabled = true(这样TextBox框获得焦点后就会出现A4输入法)
3、在TextBox的Lostfocus事件中加入:inputPanel.Enabled = false。

或者

Microsoft.WindowsCE.Forms.InputPanel inputPanel = new Microsoft.WindowsCE.Forms.InputPanel();

inputPanel.Enabled = true;

终于解决了  有点小郁闷!
以上找自M8论坛 修改。。。。。。。

点赞

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注