ListBox EnsureVisible

Answered
0
0

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

  • You must to post comments
Best Answer
0
0

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

  • You must to post comments
0
0

Thanks, Alaa. It works.

Alex

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.