Hi
Want is the best event to get the currently select node and its Tag Value?
From the Built in Tree View Combo Box
Something like this?
https://drive.google.com/file/d/1Fk1YwLN86EfMwjyplhwuYtBJMxRZNsu1/view
You can do that with a UserComboBox. It’s easy:
Simple filter and auto drop down
private void userComboBox1_KeyDown(object sender, KeyEventArgs e) { var text = this.userComboBox1.Text; this.userComboBox1.DroppedDown = true; this.treeView1.Nodes.ForEach(n => { n.Visible = n.Text.IndexOf(text, StringComparison.OrdinalIgnoreCase) > -1; }); }
Of course this is better done in a derived class.
Hi Luca
Can you do a wild card search based on text typed in the combo box?
Try:
((TreeView)this.treeViewComboBox1.DropDownControl).SelectedNode.Tag.
Please login first to submit.