public TextBoxTreeNode(string text, string value, string unit) : base(text) { this.textbox = new TextBox(); textbox.Text = value; this.value = new Label(); this.value.Text = value; this.unit = new Label(); this.unit.Text = unit; this.value.AutoSize = true; this.value.SetBounds( this.Bounds.X + this.Bounds.Width + 5, this.Bounds.Y, this.value.Bounds.Width, this.value.Bounds.Height); this.value.Show(); this.value.Visible = true; this.unit.AutoSize = true; this.unit.SetBounds( this.Bounds.X + this.Bounds.Width + this.value.Bounds.Width + 5, this.Bounds.Y, this.unit.Bounds.Width, this.unit.Bounds.Height); this.unit.Show(); this.unit.Visible = true; }
Attachment: TextBoxTreeView.zip