Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making top level form active
Message
From
30/03/2003 20:43:58
 
 
To
24/03/2003 11:09:05
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00768739
Message ID:
00771892
Views:
22
Hi Mike,

The last line in your code:
=SetForegroundWindow(lh_form.HWnd)
Is 'lh_form.HWnd' typed exactly as is? Since you put a dot, is HWnd a property of lh_form?

Thanks

My solution was to put the following before the READ EVENTS statement in my startup VFP prg:
DO FORM app_start
lh_form = _SCREEN.ACTIVEFORM
DECLARE SHORT SetForegroundWindow IN USER32.DLL INTEGER hWnd
=SetForegroundWindow(lh_form.HWnd)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform