ComboBox 相似搜索
来源:互联网 发布:印度发展现状知乎 编辑:程序博客网 时间:2024/06/05 16:59
else if (i % 2 == 1)
{
string type = dt.Rows[i]["PARAM03"].ToString().Trim();
if (type == "ComboBox")
{
ComboBox tb_Input = new ComboBox();
tb_Input.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
tb_Input.AutoCompleteSource = AutoCompleteSource.ListItems;
tb_Input.Name = "tb_Input" + dt.Rows[i]["PARAM05"].ToString().Trim();
tb_Input.Size = new Size(250, 50);
tb_Input.Font = new Font("Calibri", 12);
tb_Input.Location = new Point(width2, heigh2 * (i - z));
this.groupBox3.Controls.Add(tb_Input);
if (dt.Rows[i]["PARAM10"].ToString().Trim() != "")
{
//tb_Input.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
sql = dt.Rows[i]["PARAM10"].ToString().Trim();
exe = this.dbtools.ExecuteQueryWithoutParams(sql, "N");
if (!exe.Status)
{
MessageBox.Show(exe.Message);
return;
}
ds = (DataSet)exe.Anything;
if (ds.Tables[0].Rows.Count > 0)
{
tb_Input.Items.Clear();
tb_Input.Items.Add("");
for (j = 0; j < ds.Tables[0].Rows.Count; j++)
{
tb_Input.Items.Add(ds.Tables[0].Rows[j][0].ToString());
}
}
}
}
else if (type == "TextBox")
{
TextBox tb_Input = new TextBox();
tb_Input.Name = "tb_Input" + dt.Rows[i]["PARAM05"].ToString().Trim();
tb_Input.Size = new Size(250, 50);
tb_Input.Font = new Font("Calibri", 12);
tb_Input.Location = new Point(width2, heigh2 * (i - z));
this.groupBox3.Controls.Add(tb_Input);
}
z++;
}
}
{
string type = dt.Rows[i]["PARAM03"].ToString().Trim();
if (type == "ComboBox")
{
ComboBox tb_Input = new ComboBox();
tb_Input.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
tb_Input.AutoCompleteSource = AutoCompleteSource.ListItems;
tb_Input.Name = "tb_Input" + dt.Rows[i]["PARAM05"].ToString().Trim();
tb_Input.Size = new Size(250, 50);
tb_Input.Font = new Font("Calibri", 12);
tb_Input.Location = new Point(width2, heigh2 * (i - z));
this.groupBox3.Controls.Add(tb_Input);
if (dt.Rows[i]["PARAM10"].ToString().Trim() != "")
{
//tb_Input.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
sql = dt.Rows[i]["PARAM10"].ToString().Trim();
exe = this.dbtools.ExecuteQueryWithoutParams(sql, "N");
if (!exe.Status)
{
MessageBox.Show(exe.Message);
return;
}
ds = (DataSet)exe.Anything;
if (ds.Tables[0].Rows.Count > 0)
{
tb_Input.Items.Clear();
tb_Input.Items.Add("");
for (j = 0; j < ds.Tables[0].Rows.Count; j++)
{
tb_Input.Items.Add(ds.Tables[0].Rows[j][0].ToString());
}
}
}
}
else if (type == "TextBox")
{
TextBox tb_Input = new TextBox();
tb_Input.Name = "tb_Input" + dt.Rows[i]["PARAM05"].ToString().Trim();
tb_Input.Size = new Size(250, 50);
tb_Input.Font = new Font("Calibri", 12);
tb_Input.Location = new Point(width2, heigh2 * (i - z));
this.groupBox3.Controls.Add(tb_Input);
}
z++;
}
}
阅读全文
0 0
- ComboBox 相似搜索
- COMBOBOX 搜索
- 相似图片搜索原理
- 相似图片搜索原理
- 相似图片搜索
- 相似图片搜索原理
- 相似图片搜索
- 相似图片搜索网站
- 相似图像搜索
- 相似图片搜索
- 关于相似图片搜索
- 关于相似图片搜索
- 相似图片搜索
- 相似图片搜索原理
- 相似图像搜索原理
- 大规模相似数据搜索
- 可以搜索的ComboBox----
- 相似图片搜索(直方图相似度)
- intellij idea 隐藏文件/文件夹
- 软件密码学基础---非对称加密
- 保持一颗虔诚的心去学技术
- 浅谈JSP开发的MVC架构
- 判断闰年
- ComboBox 相似搜索
- vue中引入bootstrap
- Linux简单权限用法
- 第02课 01 JS中级课程-getElementsByClassName-1
- web前端图片懒加载实现原理
- 定下一个小目标,比如先赚他个一个亿
- matlab中GUI的使用与修改
- 交换变量(不允许创建临时变量)
- http请求测试工具PostMan的使用