Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application not in focus on startup
Message
From
07/01/2004 15:56:32
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00864735
Message ID:
00864835
Views:
18
Nirav,

I had the same issue too. I solved it with the following code:
lh_form = _SCREEN.ACTIVEFORM

DECLARE SHORT SetForegroundWindow IN USER32.DLL INTEGER hWnd
=SetForegroundWindow(lh_form.HWnd)

READ EVENTS
where lh_form is the login form. Hope it works for you too.

Regards,

Mike



>We have an application that immediately opens up to a login screen. The problem is that the application doesn't seem to be in focus on the Windows taskbar after the application is run. This is frustrating because you have to actually click on the login form before typing in your username and password. This application used to not do this. It started when my boss put in a completely new login form, but we're unable to figure out why this is happening.
>
>Any ideas? Thanks in advance.
>
>Nirav Desai
Previous
Reply
Map
View

Click here to load this message in the networking platform