J
Jeff
IDE: Visual Studio 2003 .Net
OS : XP Pro
Is there a way to get the handle to a specific node in the treeview based on
the value of TreeNode.Tag, without having to travarser through the tree???
to solve the problem, I am trying this (I don't yet know if this is the
correct approach):
TreeNode tn2 = new TreeNode();
tn2.Tag = "Home";
TreeNode t3 = tn2.FromHandle(treeView1, tn2.Handle);
But I get these errors:
1)
System.Windows.Forms.TreeNode.FromHandle(System.Windows.Forms.TreeView,
System.IntPtr)' cannot be accessed with an instance reference; qualify it
with a type name instead
2)
The type or namespace name 'tn2' could not be found (are you missing a using
directive or an assembly reference?)
Any clues will be appreciated!
Jeff
OS : XP Pro
Is there a way to get the handle to a specific node in the treeview based on
the value of TreeNode.Tag, without having to travarser through the tree???
to solve the problem, I am trying this (I don't yet know if this is the
correct approach):
TreeNode tn2 = new TreeNode();
tn2.Tag = "Home";
TreeNode t3 = tn2.FromHandle(treeView1, tn2.Handle);
But I get these errors:
1)
System.Windows.Forms.TreeNode.FromHandle(System.Windows.Forms.TreeView,
System.IntPtr)' cannot be accessed with an instance reference; qualify it
with a type name instead
2)
The type or namespace name 'tn2' could not be found (are you missing a using
directive or an assembly reference?)
Any clues will be appreciated!
Jeff