Bring ListBox selection into view

if an item in a listbox is being selected via selected(n) and it is out of view or beyond the scroll area, how can i
bring that item in the list into view ie ( auto scroll to that item and selected it )

Ex: listBox.Selected(n) = TRUE

ok great thank you !!

I have a similar problem. How would one do this if the selected item hasn’t changed but the list order has, i.e. when sorted? For example, I have a listbox with 100 items and I click the header to sort the listbox the selected item may no longer be visible. How can I find the selected item and then scroll to that position?

Get the Selected Row number, then follow Dave’s advice.

In the Listbox Class reference, you will found an example to search all Selected Rows (one in your case).