Windows CE 5.0 中的弹出式键盘 [英] Pop-up keyboard in Windows CE 5.0

查看:34
本文介绍了Windows CE 5.0 中的弹出式键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以强制内置键盘出现在 Windows CE 5.0 应用程序中?

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

我正在用 C# 设计一个项目,并希望在用户必须向应用程序输入时弹出键盘或数字小键盘.

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.

推荐答案

您应该查看 InputPanel 控件.只需从工具箱中将一个拖放到您的表单上.然后只需在输入控件的 GotFocusLostFocus 事件上显示和隐藏它:

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

这篇关于Windows CE 5.0 中的弹出式键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆