只是个简单的内容,请多多指教.
//文本框(TextBox)
TextBox txtBox = new TextBox();
txtBox.Location = new System.Drawing.Point(6, 8);
txtBox.Name = "txt" + tabPateName;
SetTextBindingInfo(txtBox, tabPateName);
txtBox.Size = new System.Drawing.Size(340, 21);
txtBox.ReadOnly = true;
txtBox.TextChanged += new System.EventHandler(txtBox_TextChanged);
//选择框(CheckedListBox)
CheckedListBox clbBox = new CheckedListBox();
clbBox.FormattingEnabled = true;
clbBox.Location = new System.Drawing.Point(3, 35);
clbBox.Name = "clb" + tabPateName;
clbBox.Size = new System.Drawing.Size(349, 212);
//添加事件
clbBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(clbBox_