General information
Category:
Forms & Form designer
>>>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only