>>>I'm using VFP 7.0
>>>
>>>I'm trying to run a modal form, but it won't stop in runtime when I run the exe file. It works fine during development.
>>>
>>>I haven't issued Read Events before trying to run the modal form, but the help file says that's not necessary. And VFP's _Framewk class doesn't issue Read Events until after doing DoUserLogin().
>>>
>>>TIA
>>
>>First check if its ShowWindow is set to 2 (TopLevel). Toplevel forms cannot be modal (It doesn't matter you set windowType to Modal or use Show(nModal))
>>Cetin
>
>Yeah, I just figured that out about 2 minutes ago. I also figured out that if Screen=Off it can't be modal.
With screen=off it can be modal (ShowWindow=1 and a TopLevel exists, or read events to simulate a modal form)
Cetin