Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login form as top level?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00565264
Message ID:
00565351
Views:
21
One of my apps works like it sounds you want yours to work. My main program calls a login screen, which is shown all by itself on the desktop. In the Init method of that login form, I have Application.Visible = .F. which hides the main Foxpro window. My config.fpw has a SCREEN=OFF in it as well. I had trouble getting it all to work, but this is the combination that seems to do it. After returning a successful login, I change Application.Visible = .T., execute my main menu, and issue the READ EVENTS. The READ EVENTS is in my main (default) program.
Hope this helps.

Randy

>Hi,
>
>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.
>
>The login form WindowState is 0 (i.e. it appears within the main window).
>
>The code to run the login form is as follows:
>
>*
>Do Form frmLogin To llOKtoContinue
>
>*
>If the return value is .T., then the app is launched by activating the appropriate menu and doing a READ EVENTS.
>
>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.
>
>TIA, Al
Previous
Reply
Map
View

Click here to load this message in the networking platform