|
-
Oct 10th, 2001, 09:50 PM
#1
Thread Starter
Frenzied Member
Edit mode on a treeview node via code?
Hi,
What I would like to do is to sort of copy the behavior of the Windows Explorer when you add a new folder. In Windows Explorer, when you add a new folder via the menu, it adds a new node and names it "New Folder". But, immediately afterwards, it puts it into "Edit" mode so the user can easily assign their own name.
Is this something that would be accomplished via an API call of some sort on a node in the treeview? I know how to add a new node, but not how to put it in "Edit" mode via code.
Any help would be greatly appreciated..
Dan
-
Oct 10th, 2001, 10:21 PM
#2
PowerPoster
Try the StartLabelEdit method of the TreeView control.
VB Code:
TreeView1.Nodes.Add , , , "New Folder"
TreeView1.Nodes(1).Selected = True
TreeView1.StartLabelEdit
Last edited by MidgetsBro; Oct 10th, 2001 at 10:24 PM.
<removed by admin>
-
Oct 11th, 2001, 08:08 AM
#3
Thread Starter
Frenzied Member
DOH!!! I didn't even see that method... Thanks!
-
Oct 11th, 2001, 05:42 PM
#4
PowerPoster
No prob... we all have our days...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|