473,386 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do I invoke the editLabel on the treeview control?

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.
--
Thanks.
Aug 13 '06 #1
2 4514
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

"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:8C**********************************@microsof t.com...
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.
--
Thanks.

Aug 14 '06 #2
I found that finally. Thank you for the help.
--
Thanks.
"Claes Bergefall" wrote:
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

"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:8C**********************************@microsof t.com...
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.
--
Thanks.


Aug 14 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: SoKool | last post by:
Can anyone point me to a site where I can get a free treeview control to use in ASP .NET or any tutorial that can help me build my own treeview control. I intend to use a treeview to generate a...
8
by: Hrvoje Voda | last post by:
What is wrong in this code? private void tree_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter ) {
3
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%""...
4
by: Ben Coats | last post by:
Hey, I'm trying to find code for an Explorer-style Directory ComboBox. (You know, it display "Desktop", "My Computer", all drives, etc., but it has a treeview control inside the combobox so that...
1
by: Boni | last post by:
Dear all, I have a treeview control, which exists all the run time. Althougth if I call Invoke(.) on this control from other thread the above exception is thrown. Window, on which the control is...
10
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a...
1
by: musosdev | last post by:
Hi guys I was using the Microsoft.Web.UI.WebControls extra namespace in my application to provide me with a TreeView control. I was using specifically ..GetNodeFromIndex(), SelectedNodeIndex and...
0
by: carlosperezs | last post by:
I have problems with this method. I have programmed this wx.Listctrl: self.ListCtrlMarks = wx.ListCtrl(self.panel, -1, style = wx.LC_REPORT) ...
0
by: jiing | last post by:
Hi all, I want to use sting(the same as Node.Text) to judge if a node exists in TreeView. I've tried several ways, but seems all failed. could anybody help me? Thanks in advance. //My...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.