simulate a mouseclick on a highlighted node?

  • Thread starter Thread starter Co
  • Start date Start date
C

Co

I want to ask my earlier question in a simple way.

Is it possible to simulate a mouseclick on a highlighted node in a
treeview?
So the user can directly edit the label

Marco
 
To edit a tree node you simply invoke the BeginEdit method on the node. For
instance,

Dim tn As TreeNode = TreeView1.SelectedNode
TreeView1.LabelEdit = True
tn.BeginEdit()

Assuming that the current selected node is the one you want to edit.
Otherwise, you need to search for the node using a value such as label
text.
 
To edit a tree node you simply invoke the BeginEdit method on the node. For
instance,

Dim tn As TreeNode = TreeView1.SelectedNode
TreeView1.LabelEdit = True
tn.BeginEdit()

Assuming that the current selected node is the one you want to edit.
Otherwise,  you need to search for the node using a value such as label
text.

Cheers James,

exactly what I was looking for.

Marco
 
Thanks for letting us know that the information was useful.

To edit a tree node you simply invoke the BeginEdit method on the node.
For
instance,

Dim tn As TreeNode = TreeView1.SelectedNode
TreeView1.LabelEdit = True
tn.BeginEdit()

Assuming that the current selected node is the one you want to edit.
Otherwise, you need to search for the node using a value such as label
text.

Cheers James,

exactly what I was looking for.

Marco
 
Back
Top