Set new item in listview visible

  • Thread starter Thread starter Tim Bücker
  • Start date Start date
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.
 
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.
 
Back
Top