我想在vb 中点饥菜单后打开浏览器显示电脑中的*。htm 文件 谢谢帮助/

解决方案 »

  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
    Const SW_SHOWNORMAL = 1
    Private Sub Form_Load()
        ShellExecute Me.hwnd, vbNullString, "c:\test.htm", vbNullString, vbNullString,SW_SHOWNORMAL
    End Sub