Set new item in listview visible

T

Tim Bücker

Hello,

I have a listview (detail) that gets filled with items using a button.
After adding some items new items are not visible in the listview because it
does not scroll automatically.
Is there a way to make new items always visible in the listview?

________ <-- ListView starts here
1
2
3
_______ <-- ListView ends here, the latest items are added but not
visible to the user...
4
5
6

--> I want something like this ...

1
2
3
_______
4
5
6
_______

.... without user interaction.

Thanks for help!
Greetings,
Tim.
 
T

Tim Bücker

Morten Wennevik said:
Hi Tim,

You are looking for ListView.EnsureVisible(index);

Hi Morten,

thanks for the fast reply and for the good news ;-)
I was just looking over to Win32...

Greetings,
Tim.
 

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