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