Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple Application
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00278192
Message ID:
00278830
Views:
21
>>>>>Thanks! that works great, the only problem I have now is when I run the program (executable), the program goes to the bottom of all of my programs instead of being on top. any ideas?
>>>>
>>>>Not sure what you mean.
>>>
>>>say I have Outlook running and a the folder that contains my program. I double click the exe and the program loads, but it is underneath Outlook and my folder. So I have to alt-tab to it even though I just switched to it.
>>
>>Not how to fix this. Try posting this as a new question so that others can spot it.
>
>Try using
>
>declare long SetForegroundWindow in "user32" long hWnd
>
>SetForeGroundWindow(some_hDC)
>
>You'll have to find out how to get the vfp hDC from windows - I've only ever used getDeskTopWindow() when VFP is active, but I'm sure you can search here for the answer (it might be FindWindow() or some such, unless VFP holds a pointer somewhere).

Hi Robert thanks for the info, but I wasn't asking a question. :-)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform