如何去除WebBrowser1的边框
请问各位老师 如何去除WebBrowser1的边框。我在窗体上放一个WebBrowser1控件,当网页加载时出现边框与窗体不协调
Private Function GetBrowserWindow(hwndBrowserContainer As Long) As Long Dim RetVal As Long Dim hwndPeer As Long Dim ClassString As String * 256 hwndPeer = GetWindow(hwndBrowserContainer, GW_CHILD) Do While hwndPeer <> 0 RetVal = GetClassName(hwndPeer, ClassString, 256) Debug.Print ClassString If InStr(ClassString, "Shell Embedding") <> 0 Then Exit Do End If hwndPeer = GetWindow(hwndPeer, GW_HWNDNEXT) Loop GetBrowserWindow = hwndPeer End Function还有这个,改改看吧。