Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21089

[RESOLVED] Select first row in listview

$
0
0
Good afternoon,
I am attempting to programatically select the first row in my listview when a command button is clicked. I've seen some examples for vb.net but I cant seem to find any for vb6.

I've tried
Code:

Listview.ListItems(index).Selected = True
Listview.ListItems(index).EnsureVisible

but i get an 'index out of bounds' error.

Thoughts?

Thanks in advanced!

Viewing all articles
Browse latest Browse all 21089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>