由于现在在VB6.0中的WebBrowser控件只能支持IE5.0吧,很多的脚本语言在上面运行会出现错误?
请高手指点一下。

解决方案 »

  1.   

    问题是网页中的按钮的外观很不一样呀,这是怎么会回事呢?
    在Webbrowser中,网页中的按钮是win98下的外观,而不是Xp下面的外观。
      

  2.   

    让WebBrowser支持xp外观:Private m_hMod As Long
    Private m_hMod2 As Long
    Private Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex As tagInitCommonControlsEx) As Boolean
    Private Type tagInitCommonControlsEx
      lngSize As Long
      lngICC As Long
    End Type
    Private Const ICC_USEREX_CLASSES = &H200Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
    Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
    Private Sub Form_Initialize()
        On Error Resume Next    Dim iccex As tagInitCommonControlsEx
        iccex.lngSize = LenB(iccex)
        iccex.lngICC = ICC_USEREX_CLASSES
        InitCommonControlsEx iccex    m_hMod = LoadLibrary("shell32.dll")
        m_hMod2 = LoadLibrary("explorer.exe")
    End Sub
    Private Sub Form_Terminate()
        On Error Resume Next    If m_hMod Then FreeLibrary m_hMod
        If m_hMod2 Then FreeLibrary m_hMod2
    End Sub