TreeView CodeSample - Move a TreeNode from one node to another
Categories: Trees
|
Tags: Developers, 1. Beginner, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
Revision:
1
Posted:
04/Oct/2009
Updated:
23/July/2010
Status:
Publish
Types: Article
|
This article will have a few sections added to it soon, based on the following article type skeleton: CodeSample OverviewThis codesample will show you how you can programmatically move a TreeNode to another place in a TreeView VB.NET Code
Private Sub MoveTreeNode(ByVal NodeToMove As TreeNode, ByVal NewParent As TreeNode)
NodeToMove.Remove()
NewParent.Nodes.Add(NodeToMove)
End Sub
C# Code
private void MoveTreeNode(TreeNode NodeToMove, TreeNode NewParent)
{
NodeToMove.Remove();
NewParent.Nodes.Add(NodeToMove);
}
About the author
Related Articles
|
Trees
|
|
|
Control of a combobox with a checked list and a tree.
Tags:
Developers, Navigation, 2. Intermediate, 3. Advanced, Customization, Layouting, Navigation, Pre v6.3, v6.3, v6.4 and Later
|
|
|
This video demonstrates how to populate a TreeView control.
Tags:
Developers, Data Binding, 1. Beginner, Data Binding, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
|
|
|
This code snippet posted By NEC_VERSA demonstrates how to find a node in a tree view.
Tags:
Developers, 1. Beginner, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
|
|
|
This article contains code that demonstrates how to create a personalized look for TreeNodes that have the mouse hovering over them while dragging another element.
Tags:
Developers, Drag & Drop, Events, C#, 2. Intermediate, 3. Advanced, Customization, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Developers, Drag & Drop, 1. Beginner, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
|
|
|
|