Put into a module 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 Public Const SW_NORMAL = 1e.g,: ShellExecute me.hwnd, "open", "http://www.yahoo.com", vbNullString, vbNullString, conSwNormal
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
Public Const SW_NORMAL = 1e.g,:
ShellExecute me.hwnd, "open", "http://www.yahoo.com", vbNullString, vbNullString, conSwNormal
就应该使用ShellExecute
或者调用注册表里的关联,很好找的