We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

TreeViewAdv Event for Node Double Click

Thread ID:

Created:

Updated:

Platform:

Replies:

31007 Jun 28,2005 04:40 PM Jun 30,2005 04:57 PM Windows Forms 5
loading
Tags: Tools
River Phoenix
Asked On June 28, 2005 04:40 PM

Is there any way to trigger an event when the user double clicks on a node in the tree view? I would like to be able to pop a form.

Administrator [Syncfusion]
Replied On June 29, 2005 05:11 PM

Hi Sean, What version of Tools are you using? I''m looking at our latest build and see a DoubleClick event present in TreeViewAdv. Regards, Gregory Austin Syncfusion Inc.

John Hawksley
Replied On June 30, 2005 09:30 AM

I''m using the most recent version. I have a DoubleClick event but, as I should have been more clear earlier, I only care about node double clicks, and I need to know which node was clicked on. There isn''t anything helpful under e.args. Maybe this is an easy question.

John Hawksley
Replied On June 30, 2005 10:51 AM

I should note, since I changed my name and changed it back, that we''re the same person. (RP and SPF both played young indiana jones)

Administrator [Syncfusion]
Replied On June 30, 2005 03:02 PM

Hi River, First thing I thought when I saw that name: "Isn''t that guy from The Boondock Saints?" But to not digress, you can use the DoubleClick event handler with the PointToNode method to implement double-clicking on nodes. The following code snippet demonstrates this: private void treeViewAdv1_DoubleClick(object sender, System.EventArgs e) { TreeNodeAdv node = this.treeViewAdv1.PointToNode(this.treeViewAdv1.PointToClient(Control.MousePosition)); if (node != null) { // Do things with node } } Hope it helps. Regards, Gregory Austin Syncfusion Inc.

John Hawksley
Replied On June 30, 2005 04:57 PM

Thanks. >Hi River, > > First thing I thought when I saw that name: >"Isn''t that guy from The Boondock Saints?" > > But to not digress, you can use the DoubleClick event handler with the PointToNode method to implement double-clicking on nodes. The following code snippet demonstrates this: > >private void treeViewAdv1_DoubleClick(object sender, System.EventArgs e) > { > TreeNodeAdv node = this.treeViewAdv1.PointToNode(this.treeViewAdv1.PointToClient(Control.MousePosition)); > > if (node != null) > { > // Do things with node > } > } > >Hope it helps. > >Regards, >Gregory Austin >Syncfusion Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;