Home All Groups Group Topic Archive Search About

How to scroll listview (details)

Author
25 Nov 2007 6:29 PM
Rich Raffenetti
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.

Author
25 Nov 2007 6:38 PM
Lloyd Sheen
"Rich Raffenetti" <rich@raffenetti_takethisout.com> wrote in message
news:OoJsgE5LIHA.4688@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
Are all your drivers up to date? click for free checkup

Author
26 Nov 2007 1:59 AM
Rich Raffenetti
Show quote Hide quote
"Lloyd Sheen" <a@b.c> wrote in message
news:%23jnIwJ5LIHA.4196@TK2MSFTNGP04.phx.gbl...
>
> "Rich Raffenetti" <rich@raffenetti_takethisout.com> wrote in message
> news:OoJsgE5LIHA.4688@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!

Bookmark and Share

Post Thread options