开发者

Pop-up keyboard in Windows CE 5.0

Is it possible force the build in keyboard to appear within a Windows CE 5.0 appli开发者_运维技巧cation?

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.


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;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜