>I have found the property to specify the form to be top level.
>
>To add, the form has no code in the .Init method as the processing is executed via a .timer member object. But the problem is the form passes straight through without waiting for the timer to kick in or allow the user to press the cmdCancel button.
>
>I have the following settings:
>
>oForm.ShowWindow = 2
>oForm.WindowType = Modal (which looks like it is overrided by ShowWindow)
>_SCREEN.Visible = .f. (in the main.prg)
>SCREEN = OFF (in the config.fpw)
>
>And the form is intantiated using oForm.Show(1).
Lee,
When ShowWindow=2 form is modeless whatever the WindowType is or Show(1) used.
Modal windows need a parent window. You can use ShowWindow = 1 (in top level).
Also a litle tricky to code but you could create a modal state with multiple read events-clear events and directly use ShowWindow=2.
Cetin