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. 2 4530
Check out the following properties, methods and events:
TreeView.LabelE dit
TreeNode.BeginE dit
TreeView.Before LabelEdit
TreeView.AfterL abelEdit
There is sample code in there as well
/claes
"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:8C******** *************** ***********@mic rosoft.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.
I found that finally. Thank you for the help.
--
Thanks.
"Claes Bergefall" wrote:
Check out the following properties, methods and events:
TreeView.LabelE dit
TreeNode.BeginE dit
TreeView.Before LabelEdit
TreeView.AfterL abelEdit
There is sample code in there as well
/claes
"Pucca" <Pu***@discussi ons.microsoft.c omwrote in message
news:8C******** *************** ***********@mic rosoft.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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 dynamic menu by collating data from a Sql Server Table.
Many thanks.
|
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 )
{
|
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%"" BORDER=""0"" CELLSPACING=""0""
CELLPADDING=""0"" ID=""Table1""> " & vbNewLine)
writer.Write(" <tr>" & vbNewLine)
writer.Write(" ...
|
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 you can navigate through the file system as well.) I've found some on the web, but all of them just have the drives and desktop directories and are...
|
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 situated exists all the time.
Any ideas what is wrong?
Thanks,
Boni
| |
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 top border.
Is it possible to have more than 1 style at the same level (parent node)
when using a SiteMap?
I want it to appear something like...
|
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 NodeData. All 3 of which are now
giving errors is the new Asp.net TreeView.
I'm found the Value property which replaces NodeData, but what about...
|
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)
self.Bind(wx.EVT_LIST_ITEM_SELECTED,self.OnSelectedItemList,self.ListCtrlMarks)
vs.Add(self.ListCtrlMarks, 1, wx.EXPAND | wx.ALL, 4)
self.ListCtrlMarks.InsertColumn(0, "Name")
|
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 TreeView is defined to has depth =3 only.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |