最近用AxWebBrowser开发浏览器,可是有3D边框怎么也去不掉,用了如下方法,可是对示完成加载的页面好像不好用,请高手指点,小弟分不多,钦囊相送 
        [align=left]private void removeBrowser3DBorder()  
        { 
            foreach (Crownwood.Magic.Controls.TabPage page in tabControl1.TabPages)  
            { 
                AxWebBrowser mybor = (AxWebBrowser)page.Controls[0];                 mshtml.IHTMLDocument2 doc = (mshtml.IHTMLDocument2)mybor.Document; 
                mshtml.IHTMLWindow2 win = (mshtml.IHTMLWindow2)doc.parentWindow; 
                win.execScript("document.body.style.overflow='hidden';", "javascript"); 
                win.document.body.style.border = null; 
            } 
        } 
在线等

解决方案 »

  1.   

    我也不太懂,把我写过的代码给你贴出来吧.
    属性:
    // axWebBrowser1
    // 
    this.axWebBrowser1.Enabled = true;
    this.axWebBrowser1.Location = new System.Drawing.Point(20, 112);
    this.axWebBrowser1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWebBrowser1.OcxState")));
    this.axWebBrowser1.Size = new System.Drawing.Size(244, 160);
    this.axWebBrowser1.TabIndex = 15;
      

  2.   

    private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
    {
    // axWebBrowser1指定的URL加载完成后,执行这里的代码。
    }
      

  3.   

    这个问题真的没人会吗?疯掉了,看起来很简单,但是进入思维雾区了,dx,help
      

  4.   

    waiting for surprise
      

  5.   

    [size=96px]顶[/size]
      

  6.   

    http://topic.csdn.net/u/20080317/14/afcb5726-a662-46e8-b002-2a0cf670c4f9.html