Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you respond to a double click on a Tree View node
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00301013
Message ID:
00301760
Views:
44
Hi Charlie.

>I'm working with the TreeView control for the first time. I see a node click event that responds to a single node click, but I don't see a double node click event. I want to run code off a child node that responds to a double click.

Use the DblClick event for the TreeView. The SelectedItem property of the TreeView will give you an object reference to the node the user double-clicked on. One caveat: double-clicking on a parent node causes it to expand or collapse, which you may not want. In the NodeClick event, save a property which indicates the current Expanded status of the node, then in DblClick, restore it to that status.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform