Hello,
check this..
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 Const SW_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute Handle, "open", "http://www.yahoo.com", "", "", SW_SHOWNORMAL
End Sub
Add a button to the form and copy and paste the code in the code window.
It opens explorer with the weblink what you give there.
Hope this helps.
With Regards,
Raghavendra Mudugal
|