>>Has anyone found a way to set the selected item in a listbox to the top item without changing itemid or listitemid and without repoping the list? IOW, programatically scroll down until the selected item is topitem?
>
>I'm not totally clear what you're trying to do, but can you just set the TopItem property?
>
>Tamar
TopIndex and and TopItemId are read-nowrite at runtime. Cetin's code works, however it leaves the bottom item highlighted when multiselect is true.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California