TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > VB.NET

How to scroll listview (details)

VB.NET

 
 
Thread Tools Display Modes
Unread 25-11-2007, 06:59 PM   #1
Rich Raffenetti
Guest
 
Posts: n/a
How to scroll listview (details)

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.


 
Unread 25-11-2007, 06:59 PM   #2
Lloyd Sheen
Guest
 
Posts: n/a
Re: How to scroll listview (details)


"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

 
Unread 26-11-2007, 02:59 AM   #3
Rich Raffenetti
Guest
 
Posts: n/a
Re: How to scroll listview (details)


"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!


 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 03:32 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional