如何设置控件的ImeMode 属性?
如何设置控件的ImeMode 属性?我写了:
this.TextBox1.GotFocus+=new System.EventHandler(this.TextBox1_GotFocus);
....
private void TextBox1_GotFocus(object sender,System.EventArgs e)
{
TextBox1.ImeMode=System.Windows.Forms.ImeMode.Disable;
}
//我希望在文本框得到焦点时,自动关闭一切中文输入法,可是上面无效!