Voila le code que j’obtiens apres avoir fais quelque recherche
Dim IEID As Integer
’ Activate a running notepad process.
' AppActivate can also use the return value of the Shell function.
' Shell runs a new instance of notepad.
IEID = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE", AppWinStyle.MinimizedNoFocus)
' Activate the new instance of notepad.
AppActivate(IEID)
Mais au lancement de l’application j’ai le message d’erreur suivant:
An unhandled exception of type ‘System.ArgumentException’ occurred in microsoft.visualbasic.dll
Additional information: Process ‘|1’ was not found.
mais je ne sais pas comment règler cette erreur