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 StartProcess(ByVal sFile As String, Optional ByVal sParameters As String = vbNullString) ShellExecute 0&, "open", sFile, sParameters, vbNullString, 1& End Sub Private Sub Command1_Click() StartProcess "http://www.codyx.org" End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question