>Koos,
>
>You can set the .TopIndex to a value that will make sure your currently selected item is visible without scrolling.
>
>>We have a listbox on a form and if you click on a row a method fires.
>>If the row is outside of the viewable window at opening of the form and you have to scroll to the row with the vertical scroll bar, then the clicking on the row does not work. Only when you open the form again, resize the form so the row you want to click on is visible and then click on it it will work. It is annoying for the user, what to do about this?
My "guide" for listbox events is an article by Andy Kramek and Marcia Akins in the June 2002 FoxTalk.
From reading that, I would try the InterActiveChange event, instead of the Click.
- Andy Rice
San Diego, CA