ListBox- show selected item as first visible item

  • Thread starter Thread starter tony
  • Start date Start date
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.
 
You can set the ListBox control's TopIndex property. Similarly, the ListView
control has an EnsureVisible method.
 
Back
Top