Open Link di Visual Basic 6

0 komentar

Untuk membuka link sebuah site dari program visual basic kita bisa menggunakan code

'Deklarasi
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

'Prosedur memanggil
Private Sub Command1_Click()
ShellExecute hWnd, "open", "http://google.com", vbNullString, vbNullString, Empty
End Sub


contoh project bisa di download di sini