Get first visible item on ListView |
Post Reply |
Author | |
MohammadGH
Newbie Joined: 02 November 2016 Location: Jordan Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 02 November 2016 at 11:11am |
hi :)
i'm trying to get the first visible item on list view (view property = 0) by using "getFisrtVisible" but it's always returns 1. Here is a sample Private Sub Form_Load() Dim i As Integer For i = 1 To 100 Dim item As ListViewItem Set item = ListView1.ListItems.Add(, , "test") item.SubItems(1) = CStr(i) Next ListView1.ListItems.item(50).EnsureVisible ' scrolling the listview to item 50 i = ListView1.GetFirstVisible.Index End Sub |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |