>
>Application.Visible = .F.
>SET SYSMENU OFF
>... setup stuff ...
>DO FORM frmLogin.SCX
>READ EVENTS
>... as user logged in, go on with the setup and get user input ...
>SET SYSMENU AUTOMATIC
>DO menMain.MPR
>READ EVENTS
>
Antonio,
As far as I know, the first read events will "stop" program execution and make VFP start receiving windows events. In this case, the
SET SYSMENU AUTOMATIC and everything after that wouldn't be executed.
I do the same thing in other way. Untill the
DO FORM frmLogin.SCX it's basically the same. But I place my
READ EVENTS in the Login form, and everything that has to be setup after the user is logged, is made from a method of the Login form.
Maybe I'm wrong, but I remember having some trouble with a missplaced
READ EVENTS.
Hope I have helped.
Alonso
Like Frank said: "I did it... MY WAY!"