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 Sub Label1_Click() Dim HttpJump Dim MyUrl As String MyUrl = "http://www.baidu.com" HttpJump = ShellExecute(0&,vbNullString,MyUrl,vbNormalFocus) End Sub 原文链接:https://www.f2er.com/vb/260400.html