我正在尝试复制以下行为 (WM6)。
转到设置 -> 关于 -> 设备 ID。设备名称文本框获得焦点,导致屏幕键盘弹出。
我希望能够在我的应用程序中执行相同的操作,最好是在托管代码中。
最佳答案
屏幕键盘位于 Microsoft.WindowsCE.Forms 命名空间中。
为它添加一个项目引用,您将拥有可用的 InputPanel 控件,将其中一个添加到您的表单,然后在您的代码后面。
private void txtField_GotFocus(object sender, EventArgs e)
{
//Enabled == show
inputPanel.Enabled = true;
}
private void txtField_LostFocus(object sender, EventArgs e)
{
inputPanel.Enabled = false;
}
关于windows-mobile - 如何在 Windows Mobile 中弹出键盘?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/697676/