The information in this article applies to:
SUMMARYDepending on the size of a ListView or TreeView control, not all ListItem or Node objects may be visible at one time. It is often desirable to control programmatically when a given ListItem or Node object is visible to a user. This article explains how to accomplish this functionality with both the ListView and TreeView controls. MORE INFORMATION
Both the ListItem and Node objects have a method named "EnsureVisible'.
To show an object all that needs to be done is to call this method from the
object to be made visible. This will cause the ListView or TreeView to
scroll in such a way that the specified node is visible on screen. A
TreeView node that happens to be embedded beneath multiple, unexpanded
levels will be made visible by expanding all necessary levels of the
TreeView. If the ListItem or Node is already visible, no change will occur.
Step-By-Step Example
Additional query words: 4.00 vb4win vb432
Keywords : PrgCtrlsCus |
Last Reviewed: May 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |