Steve,
The problem fixed by setting property nLastActivePage to 1 in design-time.
Thanks a lot for your help.
After I removed pageframe from this form, it works just fine. So, the pageframe is a culrpit. I'll try pageframe without objects to see, if pageframe indeed causes the problem. However, I still need a solution... and getting rid of pageframe would not be it :)
Later tests indicated, that the problem indeed in this particular pageframe. So, now I have to examine it closely...
This code in Page.Activate causes this problem:
with thisform
if .nLastActivePage<>1
<b> .lockscreen=.t.</b>
.dataenvironment.initialselectedalias='DataDict'
select DataDict
this.refresh()
.navstand.navupdate()
.navstand.lstOrders.enable()
.navstand.lstOrders.refresh()
lockscreen=.f.
.nLastActivePage = 1
endif
endwith
Thanks again for your help.
>Nadya,
>
>I created an .exe file with a non-modal form, with a button that launches a modal form. On the modal form, there is a button which launches the file_chooser code. Each form is based on VFP base classes.
>
>I had no problem running the .exe under W2K or Windows 98 (outside of development environment).
>
>You have no problem running modal form by itself, so I would be strip most of the stuff out of first form to see if it starts working. Did lockscreen not fix it?
>
>
>>Steve,
>>
>>Just found, that the first form was modal too. But making it non-modal doesn't make a difference. I'm sending you a picture of the screen, after I clicked open button on File_Chooser dialog, so you can see this weird problem yourself. BTW, I found, that this behavior is only the first time. After second time it disappears just fine...
>>
If it's not broken, fix it until it is.
My Blog