Search KB Filter article types
Simple Find Text In Treeview
This code snippet posted By NEC_VERSA demonstrates how to find a node in a tree view.
Categories: Trees
Tags: Developers, 1. Beginner, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
Revision: 1
Posted: 12/Jan/2008
Updated: 12/Jan/2008
Status: Publish
Types: Article

Public Function FindNodes(ByVal ActiveTreenode As Gizmox.WebGUI.Forms.TreeView) As Gizmox.WebGUI.Forms.TreeNode
With ActiveTreenode
If ActiveTreenode.Nodes.Item(IIf(ActiveTreenode.SelectedNode.Index < 0, 0, ActiveTreenode.SelectedNode.Index)).Index < (ActiveTreenode.Nodes.Count - 1) Then
ActiveTreenode.SelectedNode = ActiveTreenode.Nodes.Item(ActiveTreenode.SelectedNode.Index   1)
Return FindNodes(ActiveTreenode)
Else
Return ActiveTreenode.SelectedNode
End If
End With
End Function

About the author

Related Articles

Trees  
Title Update Author
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
06/Jan/2008    2008/01/06
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
01/Jan/2009    2009/01/01
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
06/Jan/2010    2010/01/06
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
04/Dec/2010    2010/12/04
Tags: Developers, Drag & Drop, 1. Beginner, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
23/July/2010    2010/07/23
Tags: Developers, 1. Beginner, Pre v6.3, v6.3, v6.4 and Later, 2. Intermediate, 3. Advanced
23/July/2010    2010/07/23
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS