simulate a mouseclick on a highlighted node?


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
 
Ad

Advertisements

J

James Hahn

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.
 
C

Co

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
 
Ad

Advertisements

J

James Hahn

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top