Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to ensure a form is shown in an active window?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00409977
Message ID:
00410098
Views:
20
>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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform