Ensures a specified ListItem or Node object is visible. If necessary, this method expands Node objects and scrolls the TreeView control. The method only scrolls the ListView control.
object.EnsureVisible
object:ListItem, Node
Use the EnsureVisible method when you want a particular Node or ListItem object, which might be hidden deep in a TreeView or ListView control, to be visible.
The method returns True if the ListView or TreeView control must scroll and/or expand to expose the object. The method returns False if no scrolling and/or expansion is required.
Ocx TreeView tv = "", 10, 10, 100, 300
Dim node As Node
Set node = tv.Add( , , , "David")
Set node = tv.Add(1, tvwChild, , "Mary")
node.EnsureVisible ' Expand tree to see all nodes.
Do : Sleep : Until Me Is Nothing
Node, ListItem, ListView, TreeView
{Created by Sjouke Hamstra; Last updated: 04/10/2014 by James Gaite}