AfterLabelEdit event problem
Hi all
I have a form with a treeview on it. I add 3 nodes and enable
LabelEditing.
In the AfterLabelEdit event code I want to change the SelectedNode on
the treeview however it doesn't always work.
If I click any node label, edit it and hit the Return/Enter key it
works fine. However if I edit any node label and click say on a
different node it won't work.
I know I'm probably doing something really stupid but can't figure out
what, so any help would be much appreciated.
.
Relevant Pages
- TreeView_AfterLabelEdit - why is previous value returned?
... If I select a node in my .NET 2.0 TreeView, then click on the node label, I can edit the text in the label. ... But when I try to get the new value of the Node.Text property using the code below, I get the text of the node label BEFORE I made the edit. ... foreach (TreeNode node in treeSettings.Nodes) ... (microsoft.public.dotnet.framework.windowsforms.controls) - Re: Bug in TreeView
... You can tell the version of NetCF running on the device or emulator by ... using the Cgacutil program. ... builds is to set the SelectedNode to null before clearing the ... TreeView control. ... (microsoft.public.dotnet.framework.compactframework) - Re: Bug in TreeView
... If you call Treeview.Nodes.Clear the Treeview is cleared, ... SelectedNode is set to the former last node (which now is not anymore ... I used .NET CF with applied SP2 and programmed in VB.NET ... Treeview1.SelectedNode is still pointing to a treenode ... (microsoft.public.dotnet.framework.compactframework) - TreeView drag and drop
... I'm implementing a drag-n-drop operation from a TreeView to a ListView ... SelectedNode, the SelectedNode does not change to the node the user clicked ... item at the center of the _dragRect created in the MouseDown event. ... Private Sub tvItems_MouseDown(ByVal sender As Object, ... (microsoft.public.dotnet.languages.vb.controls) - Re: Mouse_Down in TreeView
... Der Knoten wird zwar visuell "markiert", aber der SelectedNode des ... TreeViews ist trotzdem nicht der betroffene Knoten. ... Das Gleiche gilt auch, wenn ich richtig erinnere, unter VB6 beim TreeView ... beabsichtigtes Feature ist - denn die Tree-Ansichten im Windows-Explorer, ... (microsoft.public.de.german.entwickler.dotnet.vb) |
|