首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Windows Mobile >> Windows Mobile 入门 >> 正文
在Windows Mobile上控制输入法
作者:佚名    文章来源:转载    更新时间:2007-12-13 20:52:23
1. 获取输入法

新建Form ,拖入设备组件inputPanel

foreach (InputMethod im in this.inputPanel1 .InputMethods)

    {

        this.listBox1.Items.Add(im.Name);

    }

2. 显示输入面板

   [System.Runtime.InteropServices.DllImport("coredll.dll")]

internal static extern uint SipShowIM(long  flags);

SipShowIM(0);//隐藏

SipShowIM(0);//显示

3. 设置控件输入法

   Microsoft.WindowsCE.Forms.InputModeEditor.SetInputMode(this.textBox1, InputMode. Numeric);

相关文章:
没有相关文章
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号