- 积分
- 40165
- 好友
- 记录
- 主题
- 帖子
- 听众
- 收听
|
发表于 2012-12-24 17:39:15
|
显示全部楼层
[code=csharp] private void Form1_Load(object sender, EventArgs e)
{
foreach (InputLanguage ilanguage in InputLanguage.InstalledInputLanguages)
{
comboBox1.Items.Add(ilanguage.LayoutName); //动态添加系统输入法
}
}
private void button1_Click(object sender, EventArgs e)
{
InputLanguage currentLanguage = InputLanguage.InstalledInputLanguages[comboBox1.SelectedIndex];
InputLanguage.CurrentInputLanguage = currentLanguage;
MessageBox.Show(this, "成功设置系统默认输入法!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
}[/code]
目前我也只有修改当前的,系统Api还不清楚,找找吧网上,有了分享一下 |
|