还要在模块中加入这么一句: 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然后在Click事件中相应上面的语句就可以很容易的实现超链接功能了
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 Private Sub Command1_Click()ShellExecute 0, "", "www.sina.com.cn", "", "", 5End Sub
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然后在Click事件中相应上面的语句就可以很容易的实现超链接功能了
Private Sub Command1_Click()ShellExecute 0, "", "www.sina.com.cn", "", "", 5End Sub