Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some help with WSH
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00565026
Message ID:
00565623
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
>>You could try:
>>
>>oIe.TheaterMode = .t.
>>
>>That will maximize the browser and bring it to the front.
>
>Thanks Bill. This works the first time through, but if the user minimizes the browser, goes back to the VFP exe, and fires the code again, it doesn't maximize it.
>jfh

Sorry, I only tried it from the VFP7 command line. You could also try the good old fashion Win32 api.

SetForegroundWindow takes one parameter, the handle of the window you want in front. This function is often used in conjuction with the FindWindow api function, but in this case you already have the handle as an IE property.


declare integer SetForegroundWindow in win32api integer
=SetForegroundWindow(oIE.HWND)
Bill Mittenzwey
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform