crp81
asked on
Indentify TreeView Nodes
How con I identify the individual node selected (Clicked) in a TreeView.
I want to do the same as I do with labels:
private void label_MouseLeave(object sender, EventArgs e)
{
Label lbl = (Label)sender; (How can I do this with nodes)
}
I am a beginner programmer so please detail code, Thanks
I want to do the same as I do with labels:
private void label_MouseLeave(object sender, EventArgs e)
{
Label lbl = (Label)sender; (How can I do this with nodes)
}
I am a beginner programmer so please detail code, Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this is good link, this will provide you more help with example regarding treeview:
http://dotnetperls.com/treeview
http://dotnetperls.com/treeview
private void treeView1_NodeMouseClick(o
{
TreeNode tn = e.Node;
MessageBox.Show(tn.Name);
}
if this not get your desired result than plez provide me more detail that what exactly you wants to perform.
Thanks