How to scroll listview (details)

R

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.
 
L

Lloyd Sheen

Rich Raffenetti said:
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
 
R

Rich Raffenetti

Lloyd Sheen said:
listview.selecteditem.EnsureVisible

Thanks. I found it in "help" to be

listview.EnsureVisible(integerValue)

EnsureVisible was the key. Works great!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top