Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Level Form to Top Level
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658801
Message ID:
00658892
Views:
15
Eric,

Here's the code I use to bring a top level form to the front when the application starts. Add this code to the show() method of your form.
DECLARE INTEGER SetForegroundWindow IN WIN32API LONG luHwnd

*-- Get the window focus back on VFP
SetForegroundWindow(This.HWND)
HTH,
Kurt
Previous
Reply
Map
View

Click here to load this message in the networking platform