Disable the textbox when a certain treeview node is selected
Posted on 2011-03-19
I have a treeview on the left and a textbox on the right devided by a splitter.
What treeview-event should i use when I want to disable the textbox
when a user clicks on a treeview node that has a imageindex 3.
I would say: the afterselect-event but I have allready code there to show text
in the textbox when a treeview node is selected.
private void tvNotes_AfterSelect(object sender, TreeViewEventArgs e)
DataRow row = e.Node.Tag as DataRow;
txtbNotes.Text = row["Data"].ToString();
Who can help me?