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.

want to retain the select event in the first node

Thread ID:

Created:

Updated:

Platform:

Replies:

42551 Mar 31,2006 07:33 AM Mar 31,2006 10:09 AM Windows Forms 1
loading
Tags: Tools
Administrator [Syncfusion]
Asked On March 31, 2006 07:33 AM

Hi forum, I am using tree view. I have identified that tree node is being selected using after select process. I am opening a new form 2 by selecting the node in the form 1, after returning from the form 2 to form 1. The first node which is selected first is not getting selected again. Please help me. Thanks, Carl

Vijayanand S [Syncfusion]
Replied On March 31, 2006 10:09 AM

Hi Carl, AfterSelect event is used to identify whether a node is currently being selected or not. But it wont trigger when you click on an already selected node. I assume, this is the problem you are experiencing now. You could use the TreeViewAdv Click or MouseDown event to show the second form whenever you click on the same tree node. Point mouseLoc = this.treeViewAdv1.PointToClient(Control.MousePosition); TreeNodeAdv node = this.treeViewAdv1.PointToNode(mouseLoc); if (node != null && node.TextAndImageBounds.Contains(mouseLoc)) { string strin = "Opening a Dialog for " + node.Text; new Form2(strin).ShowDialog(); } I hope it helps you. Please let me know if you have any questions. Thanks for your interest in Syncfusion products. Regards, Vijay Dialogb.zip

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.

;