private void AddNewNode_Load(object sender, EventArgs e) { label7.Text = parentnode.Text; checkedListBox1.Visible = false; DataSet ds = TreeNodes.GetSubNodes(Convert.ToInt32(parentnode.Tag)); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { comboBox3.Items.Add(ds.Tables[0].Rows[i][1]); } comboBox3.Items.Add("【无】"); #region 初始化可扩展的下拉框控件 comboBox1.ImageList = imageList1; comboBox2.ImageList = imageList1; for (int i = 0; i < imageList1.Images.Count; i++) { comboBox1.Items.Add(new ComboBoxExItem(i.ToString(), i)); comboBox2.Items.Add(new ComboBoxExItem(i.ToString(), i)); } #endregion }