Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Login form as top level?
Message
De
07/10/2001 10:57:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00565264
Message ID:
00565268
Vues:
28
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform