怎样才能通过编程枚举到当前所有可以使用的输入法,及怎样设置当前输入法 怎样才能通过编程枚举到当前所有可以使用的输入法,及怎样设置当前输入法 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 InputLanguageCollection ilc = InputLanguage.InstalledInputLanguages; int intX; int intY; intX = 10; intY = 20; int i = 0; foreach (InputLanguage il in ilc) { //comboBox1.Items.Add( il.LayoutName ); if(intX + 250 >= this.gpbHavedInput.Width) { intX = 10; intY = intY + 20; } System.Windows.Forms.CheckBox chbTemp = new CheckBox(); chbTemp.Name = i.ToString(); chbTemp.Text = il.LayoutName; chbTemp.Location = new System.Drawing.Point(intX, intY); chbTemp.Width = 250; chbTemp.Cursor = System.Windows.Forms.Cursors.Hand; //chbTemp.CheckedChanged += new System.EventHandler(this.CheckedChanged); intX = intX + chbTemp.Width; this.gpbHavedInput.Controls.Add(chbTemp); i = i + 1; } c# SQL语句 求高手查看 Remoting 访问局域网文件 判断dataset中是否包含某个值 两个串口,串口1接上位的无线电台,串口2接下位的PLC,接收数据时如何区分? 祝大家中秋快乐!散分... axWebBrowser控件如何解决网页弹出的对话框?有意思的问题! 读取文件夹下的所有文件的信息 并添加到ListView后,发现程序内存占用很大,怎么解决? c#求助 方法的参数问题? 怎样制作象visio等软件的工具箱(多面板,边缘可连接), 再问一次呀同志们:如何绑定数据 怎么样才能在C#里调用EXCEL里的对话框
int intX;
int intY;
intX = 10;
intY = 20;
int i = 0; foreach (InputLanguage il in ilc)
{
//comboBox1.Items.Add( il.LayoutName );
if(intX + 250 >= this.gpbHavedInput.Width)
{
intX = 10;
intY = intY + 20;
}
System.Windows.Forms.CheckBox chbTemp = new CheckBox();
chbTemp.Name = i.ToString();
chbTemp.Text = il.LayoutName;
chbTemp.Location = new System.Drawing.Point(intX, intY);
chbTemp.Width = 250;
chbTemp.Cursor = System.Windows.Forms.Cursors.Hand;
//chbTemp.CheckedChanged += new System.EventHandler(this.CheckedChanged); intX = intX + chbTemp.Width;
this.gpbHavedInput.Controls.Add(chbTemp);
i = i + 1;
}