怎么用VB6编程来连接internet?比如说我按确定就进入百度之类的..谢谢各位帮下忙

解决方案 »

  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 LongPrivate Sub Command1_Click()
        ShellExecute 0, "open", "http://www.baidu.com/", "", "", 5
    End Sub
      

  2.   

    http://www.m5home.com/bbs/dispbbs.asp?boardid=28&Id=301使用方法:先在工程里添加这个模块,然后在需要使用时,作如下调用:OpenFile "http://www.m5home.com/bbs"                 '用默认浏览器打开本论坛
    OpenFile "123.txt"
    OpenFile "notepod.exe"                                          '打开记事本