关于输入法超级难的问题,高手进来帮忙 需要作一个WINDOWS程序,在一个文本框被focus时候,自动出现一种中文输入法,并且跳出软键盘,等待用户利用软件盘输入中文。是不是很难?高手过来帮帮忙吧。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以用InputLanguage类参见http://www.yesky.com/20020108/213018.shtml 二楼的大哥,默认的IMEMODE只有默认日文的输入法选项,中文的好像只能选择ON表示开启中文输入,但是没办法默认哪种中文输入法。另外,软件盘自动同时开启是个很麻烦的问题。 有个朋友写了一个方法可以实现,给路过的朋友学习以下。现在就剩下软件盘开启的功能了。using System.Runtime.InteropServices; private void Form1_Load(object sender, System.EventArgs e) { this.txtName.Focus(); ActivateIME("E00E0804");//激活 "微软拼音2003 " 输入法 } [DllImport("user32")] public static extern int LoadKeyboardLayout(string pwszKLID, int flags); [DllImport("user32")] public static extern int ActivateKeyboardLayout(int HKL, int flags); public static void ActivateIME(string imeCode) { int hkl = LoadKeyboardLayout(imeCode, KLF_ACTIVATE); ActivateKeyboardLayout(hkl, KLF_SETFORPROCESS); } 如何能通过IP,查询到这个IP所在服务器有多少个网站,对应域名是什么,谢谢大家! 告诉我如何修改这个XML windows mobile模拟登录、调用j2ee的web工程 一个三层中通过反射获得对象的问题,高手帮帮忙! VS2003 升级到 VS2005 的问题..100分求一解 绑定数据到ComboBox时发生的错误,大侠请帮我! 关于从html的字符串中截取一块div出来 能否通过批处理 进行.net framework 的权限设置. 急需答复 c#2个时间相减 无法识别的配置节“AppSettings”----在线等 想提取一个网页中的符合要求的链接。
using System.Runtime.InteropServices;
private void Form1_Load(object sender, System.EventArgs e)
{
this.txtName.Focus();
ActivateIME("E00E0804");//激活 "微软拼音2003 " 输入法
} [DllImport("user32")]
public static extern int LoadKeyboardLayout(string pwszKLID, int flags);
[DllImport("user32")]
public static extern int ActivateKeyboardLayout(int HKL, int flags);
public static void ActivateIME(string imeCode)
{
int hkl = LoadKeyboardLayout(imeCode, KLF_ACTIVATE);
ActivateKeyboardLayout(hkl, KLF_SETFORPROCESS);
}