I have a parent node called "list of forms ".
It has few child nodes.
there are 5 buttons in the windows form.
when i select a child node, then only all the buttons should be enabled.( I have disabled these buttons on form load and also at treeview_collapse)
when i expand the tree , then it should not be enabled. It should be enabled ONLY when i select the first node or some other node.
I tried to do it like button.enabled = false ; etc etc but dont know exactly for what event i have to write. I also tried for treeview_after select and also for treeview_nodemouseclick but nothing worked out. pleas e help me
Jan MontanoPosted Jan 6, 2009, 1:59 AM
{
if (e.Node.IsSelected)
{
if (e.Node.Name == "Node2")
{
button3.Enabled = true;
}
}
}
// Node2 is my childNode