How do I invoke the editLabel on the treeview control?

G

Guest

Hi, When the user select a tree node, right click and select the "Rename"
option in my context menu, I would like to create the Edit Label ability for
the user. I would like to have the blinking cursor on the selected node,
which will be in rectangle frame, and allow the user to edit the labe and
when it loses focus or hit enter then I'll get back the newly edited/entered
text of the treenode label. Can someone point me to a sample code or some
ideas on how to do this? Thank you.
 
C

Claes Bergefall

Check out the following properties, methods and events:
TreeView.LabelEdit
TreeNode.BeginEdit
TreeView.BeforeLabelEdit
TreeView.AfterLabelEdit

There is sample code in there as well

/claes
 

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