Hi!
Somewhere in the code the Value property of the list box, ListIndex changed. Also, when ControlSource of the Listox specified, the value from ControlSource is used to select the item.
As opposite, you can use all above to set the selection in your program to force list box displaying correct selection - by assigning values to the ListIndex or Value, or, when ControlSource specified, by assigning value to the variable/field specified in ControlSource (then Refresh call of ListBox control).
HTH.
>I have a list box on a page of a pageframe which selects picture files to view. If I move to another page where the picture is viewed full size, then back again, the file selected jumps to the bottom of the list.
>
>Is there any way of stopping this?
>
>If I set focus on the list when returning, the previous selection jumps to the bottom. If I do not do this, it jumps to the bottom when I try to select another file (this is even worse!).
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.