Hi guys,
Is there a reason why ListBox lacks an EnsureVisible method (which is present for ListView for example)? How can I do it in a different way?
Best,
Alex
Hi Alex,
The suitable replacement for the EnsureVisible method for a ListBox is the ListBox.TopIndex parameter.
The basic APIin Wisej is modeled after WinForms and there is no EnsureVisible() in Winforms, it’s done this way to make it compatible with Pre-existing WinForms code for migration purposes!
So depending on how many items you have in a ListBox, you’ll just have to assign the TopIndex parameter to the index you’ll want to scroll into!
HTH,
Alaa
Thanks, Alaa. It works.
Alex
Please login first to submit.