A Top-level form cannot be modal. You'll need READ EVENTS. Also you'll need to issue CLEAR EVENTS to exit event loop. See
http://www.alvechurchdata.co.uk/hints-and-tips/foxcannotquit.htmldo form clock
READ EVENTS
>Thanks Sergey. Now when I click on the exe file, the windows just flicks and the clock form does not show up at all. this is my main code
>_screen.Visible = .F.
> do form clock
> *close up the program and tidy up.
> set sysmenu to default
> clear events
> set escape on
> on escape
> clear all
> _screen.picture = ""
>
>If I take the _screen.visible=.f. out, the clock works. Am I missing something ??? windowtype=1 is set. ShowWindow=2 (ShowWindow=0 works)
>Any help will be appreciated. Many thanks.
--sb--