By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,730 Members | 1,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,730 IT Pros & Developers. It's quick & easy.

How to scroll listview (details)

P: n/a
In the listview control I can set the highlighted item with

listview.focus()
listview.items(integerValue).selected=true

How do I programmatically scroll the pane of the details view to bring the
highlighted item into the window?

multiselect is false.
Nov 25 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
In the listview control I can set the highlighted item with

listview.focus()
listview.items(integerValue).selected=true

How do I programmatically scroll the pane of the details view to bring the
highlighted item into the window?

multiselect is false.

listview.selecteditem.EnsureVisible

Nov 25 '07 #2

P: n/a

"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>
"Rich Raffenetti" <rich@raffenetti_takethisout.comwrote in message
news:Oo**************@TK2MSFTNGP06.phx.gbl...
>In the listview control I can set the highlighted item with

listview.focus()
listview.items(integerValue).selected=true

How do I programmatically scroll the pane of the details view to bring
the highlighted item into the window?

multiselect is false.


listview.selecteditem.EnsureVisible
Thanks. I found it in "help" to be

listview.EnsureVisible(integerValue)

EnsureVisible was the key. Works great!
Nov 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.