ListBox- show selected item as first visible item

T

tony

Hi.

after i select the item of listBox (in code), i want to display this
selected item as the first visible item.

how can i do that ?

thanking in advance.
 
J

Jeff Hopper

You can set the ListBox control's TopIndex property. Similarly, the ListView
control has an EnsureVisible method.
 

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