Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top-Level form doesn't get focus??
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950551
Message ID:
00950559
Views:
19
Tried it...same problem, however it does work if I put it in the SHOW() method. Only complaint is that the title-bar didn't change to blue, but I guess I can deal with that.

>i put this in my login form (activate())
>
>
>DECLARE INTEGER SetForegroundWindow IN USER32 INTEGER
>DECLARE INTEGER FindWindow IN USER32 STRING @ , STRING @
>lnHWND=FindWindow(0, _Screen.Caption)
>IF lnHWND>0
>	SetForegroundWindow(lnHWND)
>ENDIF
>
>
>
>>I have an app that shows a splash screen (as-top-level form, with Screen = Off in my config.fpw file)...
>>then when it's done, the login screen pops up (also a top-level-form). I've set always-on-top to .T., yet the user still has to click on the form (which is acutally a vcx) to be able to type in their passowrd, the form never gets focus.
>>Obviously this will be rather anoying. Anyone know a way around this???
>>Thanks!
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform