『原创』C#中TreeView类操作全攻略:建立树,新增节点,删除节点,修改节点,拖动节点,与Oracle数据库交互操作(一)(5) this.btn_AddRoot = new System.Windows.Forms.Button(); this.btn_Close = new System.Windows.Forms.Button(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.funcDataTable)).BeginInit(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.trv_Function); this.groupBox1.Location = new System.Drawing.Point(24, 24); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(440, 496); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; this.groupBox1.Text = "功能列表:"; // // trv_Function // this.trv_Function.AllowDrop = true; this.trv_Function.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(30)), ((System.Byte)(66)), ((System.Byte)(94))); this.trv_Function.ImageIndex = -1; this.trv_Function.Indent = 40; this.trv_Function.Location = new System.Drawing.Point(8, 16); this.trv_Function.Name = "trv_Function"; this.trv_Function.SelectedImageIndex = -1; this.trv_Function.Size = new System.Drawing.Size(424, 472); this.trv_Function.TabIndex = 0; this.trv_Function.DragOver += new System.Windows.Forms.DragEventHandler(this.trv_Function_DragOver); this.trv_Function.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.trv_Function_AfterSelect);