VB中,如何点击一个按钮后,弹出一个网页?

例如我要弹出 App.path & "尀abc.htm" ,请问该如何写?
2025-05-21 18:56:40
推荐回答(1个)
回答(1):

用API:

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

ShellExecute Me.hwnd, "open", App.path & "\abc.htm", "", "", 5