Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to ensure a form is shown in an active window?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00409977
Message ID:
00410098
Vues:
19
>Ok, I'm feeling stupid today. I know that read a tip for this some time ago, but I can't seem to find the thread.
>
>The situation is, I have a login screen, which display immediately upon launching the exe. It displays as the top/active window (Show Window = 2 As Top Level), which I want. Upon a successful login, the login window is realesed, and the main window is displayed, which is also set to (Show Window = 2 As Top Level). Problem is, the main window keeps displaying in a non-active window, behind any other windows on the desktop. (VFP 5 / Windows 2000)
>
>I know there's something rediculously simple that I'm missing here.
>
>Thanks for any help.
Procedure MainProgram
   Public lAccess
   lAccess = .F.
   Do Form LoginForm && As top Level
   Read Events
   IF lAccess
      Do Form MainForm  && As Top Level form
      Read Events
   Endif
EndProc
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform