如何在VB编写的软件上加上超链接?

来源:百度知道 编辑:UC知道 时间:2024/05/15 00:38:45
如何在用VB编写的软件上加上超链接?让别人可以访问我的网站

给你个例子:
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 Form_Load()
Label1.Caption = "http://hi.baidu.com/sxtiger"
End Sub

Private Sub Label1_Click()
Call ShellExecute(Form1.hwnd, "open", Label1.Caption, vbNullString, vbNullString, &H0)
End Sub