在VB中设置了一个按钮,如何设置点击后连接到一个网站

来源:百度知道 编辑:UC知道 时间:2024/05/09 19:23:23
在VB中设置了一个按钮,如何设置点击后连接到一个网站

Shell "explorer.exe http://www.sina.com", 1

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 Command1_Click()
ShellExecute Me.hwnd, "open", "http://dream.lq.googlepages.com", "", "", 5
End Sub