![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
combox
brian0031
这个作者很懒,什么都没留下…
展开
-
datagridview中使用combox
private void Form1_Load(object sender, EventArgs e) { sysdt2.Columns.Add("factory", System.Type.GetType("System.String")); sysdt2原创 2011-09-13 11:22:25 · 724 阅读 · 0 评论 -
C#中combox设置成DropDownList后,程序执行时即显示第一项
combox在属性dropdownstyle里设置成DropDownList后,程序执行时即显示第一项 private void Form1_Load(object sender, EventArgs e) { comboBox1.Text = comboBox1.Items[0].ToString(); }原创 2012-05-18 14:47:40 · 2396 阅读 · 0 评论 -
c#中combox绑定datatable数据源
combox绑定datatable数据源 string _str2 = string.Empty; _str1 = string.Format("select distinct p_o, p_id from [QC_Angel] where Product='{0}' ",textBox1.Text.Trim()); comboBox1.DataSource = _dt; comboBox原创 2012-05-21 15:23:02 · 4345 阅读 · 0 评论 -
comboBox执行回车键变Tab键
comboBox执行回车键变Tab键 private void comboBox2_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) textBox1.Focus(); } //是KeyDown而不是KeyUp,否则会多跳一个控件 private void textBox原创 2013-01-23 16:16:59 · 730 阅读 · 0 评论