Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

How do I invoke the editLabel on the treeview control?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pucca - 13 Aug 2006 23:15 GMT
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.
Signature

Thanks.

Claes Bergefall - 14 Aug 2006 16:39 GMT
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

> 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
[quoted text clipped - 5 lines]
> text of the treenode label.  Can someone point me to a sample code or some
> ideas on how to do this?  Thank you.
Pucca - 14 Aug 2006 18:58 GMT
I found that finally.  Thank you for the help.
Signature

Thanks.

> Check out the following properties, methods and events:
> TreeView.LabelEdit
[quoted text clipped - 15 lines]
> > text of the treenode label.  Can someone point me to a sample code or some
> > ideas on how to do this?  Thank you.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.