How to make a specific tree node unclickable in vb.net 2005
-
Hi, dear all, I have a treeView control in MDIcontainer vb project. In some reason, in specific case, I need to disable some of the tree node (make is gray and unclickable) based on user input. I didn't have checkbox in tree node. Is it possible to do it? Thanks!
-
Hi, dear all, I have a treeView control in MDIcontainer vb project. In some reason, in specific case, I need to disable some of the tree node (make is gray and unclickable) based on user input. I didn't have checkbox in tree node. Is it possible to do it? Thanks!
Clearing all child nodes makes it unclickable, you could remove the child nodes from the node you want to disable and set the backgroundColor property to gray. When you enable the node again you can set the childnodes again and remove the gray color. But this is probably not the best solution....
modified on Friday, August 13, 2010 8:39 AM
-
Clearing all child nodes makes it unclickable, you could remove the child nodes from the node you want to disable and set the backgroundColor property to gray. When you enable the node again you can set the childnodes again and remove the gray color. But this is probably not the best solution....
modified on Friday, August 13, 2010 8:39 AM
Thanks. Can I hide a node?
-
Thanks. Can I hide a node?
-
Thanks!