Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Ouvrir IE en plein écran...

1 réponse
Avatar
Océane
Bonjour,

Je suis débutante et, je souhaite connaître la syntaxe pour ouvrir Internet
Explorer en plein écran.

Ex:

Shell "C:\Program Files\Internet Explorer\iexplore.exe
http://127.0.0.1/", vbNormalFocus

1 réponse

Avatar
François Picalausa
"Océane" a écrit dans le message de
news:O%
Bonjour,

Je suis débutante et, je souhaite connaître la syntaxe pour ouvrir
Internet Explorer en plein écran.

Ex:

Shell "C:Program FilesInternet Exploreriexplore.exe
http://127.0.0.1/", vbNormalFocus



Bonjour/soir,

Il ne faudrait pas hardcoder le chemin vers IE... ici, il est installé sous
g:program filesinternet exploreiexplore

Mais apparement, le dossier de internet explorer est repris par défaut dans
les variables d'environnement.
Tu peux donc utiliser:
Option Explicit

Private Declare Function ShellExecute _
Lib "shell32.dll" _
Alias "ShellExecuteA" _
( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long _
) _
As Long

Private Const SW_NORMAL = 1


Private Sub Form_Load()
ShellExecute 0, "open", "iexplore.exe", "-k http://faq.vb.free.fr",
vbNullString, SW_NORMAL
End Sub

--
François Picalausa (MVP VB)
FAQ VB : http://faq.vb.free.fr
MSDN : http://msdn.microsoft.com