Option Explicit
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()
Call ShellExecute(hwnd, "Open", "http://www.csdn.net", "", _
App.Path, 1)
End Sub
这样写就可以了,可以把你的地址加到上面
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()
Call ShellExecute(hwnd, "Open", "http://www.csdn.net", "", _
App.Path, 1)
End Sub
这样写就可以了,可以把你的地址加到上面
就象超级文本一样。
当mouseover发生时字体变红
当mouseclick发生是用上面的shell就可以了~private sub label1_mouseover ()
label1.font.color=vbred '颜色可能写的不对,有点忘了,不是很经常用这个~
end subprivate sub label1_click ()
shellexecute me.hwnd,"Open","http://www.csdn.net","",app.path,1 end sub
来晚了,我也是用 ShellExecute(m_hWnd,NULL,
"http://www.computerworld.com.cn",
NULL,NULL,SW_SHOWMAXIMIZED);
你说的我都早就知道,但我是要象超级文本一样的!!!不是label,button等等