>Hi all,
>
>Is there any way to prevent a treeview from collapsing and expanding when a user double click on a root node, i need to show a form on a node double- click and have the user expand and collapse with the + or - only.
You may try with checking seconds() in NodeClick, and run your form (and have a NoDefault) if the time since last NodeClick is less than _dblclick (or else do nothing).
Last few times I had a treeview in role of a menu, any expandable node was doing nothing (except expanding and collapsing); only end nodes spurred the system into action, on just a click. You may just revise your tree and put the form itself to be activated on the first end node in a branch - which would be a new node, before any of your existing nodes.