Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login form as top level?
Message
From
07/10/2001 10:57:35
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00565264
Message ID:
00565268
Views:
27
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform