>Fabio, I have hacked my form to a point where I can isolate the problem. I will describe it here but if you need me to I can send you my sample form to repro the problem.
>
>I have a form with a pageframe which has a few pages (4 in my example). On each page I put a listbox bound to an array of items which for quick testing I made this a public array of 6 items.
>
>The form has a custom REFRESH event:
>
>
>WITH THISFORM
>
> .LOCKSCREEN = .T.
>
> WITH .PAGEFRAME1
>
>* .PAGE_PRCS.REFRESH
>* .PAGE_IND1.REFRESH
>* .PAGE_IND2.REFRESH
>
> ENDWITH
>
> .LOCKSCREEN = .F.
>
>ENDWITH
>
>
>If you use the above refresh code then the listboxes work properly first time. If you un-comment the refresh for the individual pages then you must first activate those pages before the listboxes work properly. Use of DODEFAULT() before or after makes no difference. Only by commenting out the individual page refresh lines above will the listboxes work first time.
>
>Hope this helps.
try this change:
nodef
WITH THISFORM
.LOCKSCREEN = .T.
WITH .PAGEFRAME1
.PAGE_PRCS.REFRESH
.PAGE_IND1.REFRESH
.PAGE_IND2.REFRESH
ENDWITH
.LOCKSCREEN = .F.
ENDWITH