Pop-up keyboard in Windows CE 5.0

南笙酒味 提交于 2019-12-12 23:36:32

问题


Is it possible force the build in keyboard to appear within a Windows CE 5.0 application?

I am designing a project in C# and would like the keyboard or a numerical keypad to pop-up when the user has to input to the application.


回答1:


You should look at the InputPanel control. Just drop one onto your form from the toolbox. Then just show and hide it on the GotFocus and LostFocus events of the input controls:

private void textBox1_GotFocus(object sender, EventArgs e)
{
    inputPanel1.Enabled = true;
}

private void textBox1_LostFocus(object sender, EventArgs e)
{
    inputPanel1.Enabled = false;
}


来源:https://stackoverflow.com/questions/3156960/pop-up-keyboard-in-windows-ce-5-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!