cs_rene38
Messages postés1858Date d'inscriptionsamedi 29 juin 2002StatutMembreDernière intervention17 octobre 201311 9 févr. 2003 à 23:25
1ère solution :
x = Shell("c:\windows\winhelp.exe C:\MonDossier\MonFichier.hlp", vbNormalFocus)
2ème solution :
Dans la section déclaration :
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
Puis appel de la fonction API :
ShellExecute Form1.hWnd, "open", "C:\MonDossier\MonFichier.hlp", vbNullString, "C:\MonDossier", Option_d 'Affichage