Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim X As Long
X = ShellExecute(0, "Open", "
http://www.google.i", vbNullString, vbNullString, 0)
End Sub
End Class
Module Module1
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
End Module
Ho creato un nuovo progetto con una form e un modulo, ho dovuto modificare il comando shellexecute perchè visual studio mi segnalava un errore.
Però così non funziona, dove ho sbagliato?
ciao e grazie