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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeViewAdv and Click to show new form

Thread ID:

Created:

Updated:

Platform:

Replies:

63928 Jul 11,2007 05:56 PM UTC Jul 12,2007 10:00 AM UTC WinForms 1
loading
Tags: Tools
John
Asked On July 11, 2007 05:56 PM UTC

Hi,

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?

thanks

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

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:
http://websamples.syncfusion.com/samples/Tools.Windows/F63928/main.htm

Thank you for using Syncfusion Products.

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.

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.

Warning Icon 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.Close Icon

;