Click here to Skip to main content
15,921,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i m working on treeview.
i had a treenode name employer and its subnodes location,department and report.
what i want is when i click on location subnode,a new form will display.
i used following coding:
C#
  Program.node=treeView1.SelectedNode;
  if (e.Node.Name==loc.ToString())
  {
      employer_location second_form;
      second_form = new employer_location();
      second_form.Show();
  }
            
  //Program.node = new TreeNode();
  //MessageBox.Show("a node is selected");
}

i worked on nodemousedoubleclick event. here loc is object type variable name of node location.
can anybody help me out of this problem
thanx in advance
neaS
Posted
Updated 15-Aug-11 20:51pm
v2
Comments
OriginalGriff 16-Aug-11 3:46am    
What is the problem? You don't say what happens that shouldn't, or doesn't happen that should.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900