- Dans un module .bas, la déclaration de la fonction API :
-
- 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
-
- Dans votre code, ici un click sur un label (les labels peuvent être transparents et donc se placer sur un BMP) :
-
- Private Sub Label1_Click()
- Dim lapi As Long
- a$ = App.Path & "index.html"
- lapi = ShellExecute(Me.hwnd, "open", a$, vbNull, vbNull, 5)
- End Sub
-
Dans un module .bas, la déclaration de la fonction API :
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
Dans votre code, ici un click sur un label (les labels peuvent être transparents et donc se placer sur un BMP) :
Private Sub Label1_Click()
Dim lapi As Long
a$ = App.Path & "index.html"
lapi = ShellExecute(Me.hwnd, "open", a$, vbNull, vbNull, 5)
End Sub