Ensures the given item is in the visible client area.
Type | Description | |||
Item as HITEM | A long expression that indicates the item's handle that fits the client area. |
The method doesn't expand parent items. The EnsureVisibleItem method scrolls the control's content until the item is visible. Use the IsItemVisible to check if an item fits the control's client area.
The following sample shows how to make visible the first item in the group: Group.Items.EnsureVisibleItem Group.Items(0)