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 and Click to show new form

Thread ID:





63928 Jul 11,2007 01:56 PM Jul 12,2007 06:00 AM Windows Forms 1
Tags: Tools
Asked On July 11, 2007 01:56 PM


I would like a control or form to popup when a user clicks on a child node. I can capture the double click event but that also could fire when a user double clicks the parent node. Is there anyway to popup a form or messagebox when you click on a child node?


Jeba S [Syncfusion]
Replied On July 12, 2007 06:00 AM

Hi John,

You can prevent the doubleclick event for the parent node by checking the level of the node. Please refer this code snippets:

private void treeViewAdv1_DoubleClick(object sender, EventArgs e)
TreeNodeAdv node = this.treeViewAdv1.SelectedNode;
//Check the level
if (node.Level >= 2)
MessageBox.Show("Pop Up");

Please refer the sample in the below link which illustrates the above:

Thank you for using Syncfusion Products.

Kindly let us know if you need any further assistance.

Best Regards,


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.