实现效果:
知识运用:
TextBox控件的ImeMode属性 //获取或设置控件的输入法编辑器(ime)模式
public ImeMode ImeMode {get; set;}
实现代码:
private void button1_Click(object sender, EventArgs e) { textBox1.ImeMode = ImeMode.On; //打开输入法 } private void button2_Click(object sender, EventArgs e) { textBox1.ImeMode = ImeMode.Off; //关闭输入法 }
原文地址:https://www.cnblogs.com/feiyucha/p/10291489.html
时间: 2024-10-10 01:45:11