Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need some help with WSH
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00565026
Message ID:
00565623
Vues:
30
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform