>Im the apps that I've built so far, I have the standard things happening - i.e. run a splashscreen, set-up the environment in my start-up program, then run the login form.
>
>[...]
>What I'd like to do is have the login form as a top-level form but no matter what I have tried so far, it isn't working properly. I've monkeyed around with the WindowState, ShowWindow, WindowType, and AlwaysOnTop properties to no avail.
>
>Can anyone point me in the right direction here - i.e. I'd like the login form to be a top-level form, and once the login is successful, them make the application visible.
Hi, Allan
You may try something like this
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
The form should be Modeless and shown as Top Level Form; its Destroy method should include a
CLEAR EVENTS command.
bye
----------------------------------
António Tavares Lopes