### Find Node in Form

To find a Node (View) in a Form, make use of the method GetAllViewsRecursive.
Example find a View by View Type
For Each n As Node In MainForm.RootPane.GetAllViewsRecursive
If n Is MenuBar Then
Log("MenuBar found")
End If
Next
Example find a View by Tag Property
Note that a Tag can be Null.
For Each n As Node In MainForm.RootPane.GetAllViewsRecursive
If n.Tag <> Null And n.Tag = "MenuBarA" Then
Log("MenuBarA found")
End If
Next
Or
For Each n As Node In MainForm.RootPane.GetAllViewsRecursive
Dim s As String = n.Tag
If s.EqualsIgnoreCase("MenuBarB") Then
Log("MenuBarB found")
End If
Next

Changed: , Category: Nodes, File: T6C225M1664.htm, ID: 1664