Public 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_SHOWNORMAL As Long = 1
Private Sub ouvrir_Click() ShellExecute Me.hWnd, "open", File1.Path & "" & File1.List(File1.ListIndex), vbNullString, File1.Path, SW_SHOWNORMAL End Sub
Private Sub File1_Click() ShellExecute Me.hwnd, "open", File1.List ( File1.ListIndex ), vbNullString, "C:", SW_SHOWNORMAL End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionShellExecute Me.hwnd, "open", File1.List(File1.ListIndex), vbNullString, "C:", SW_SHOWNORMAL
Private Const SW_SHOWNORMAL As Long = 1
Private Const SW_SHOWNORMAL As Long = 1
Private Sub ouvrir_Click() ShellExecute Me.hwnd, "open", File1.List(File1.ListIndex), vbNullString, "C:", SW_SHOWNORMAL
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 Sub ouvrir_Click() Private Const SW_SHOWNORMAL As Long = 1 ShellExecute Me.hwnd, "open", File1.Path & "" & File1.List(File1.ListIndex), vbNullString, File1.Path, SW_SHOWNORMAL End Sub