webBrowser 参数设置

           //禁用脚本错误等类似的窗口信息
            this.webBrowser1.ScriptErrorsSuppressed = true;
            //禁用右键菜单
            this.webBrowser1.IsWebBrowserContextMenuEnabled = false;
            //禁用键盘快捷键
            this.webBrowser1.WebBrowserShortcutsEnabled = false;
            //打开IE打印机会话框
            this.webBrowser1.ShowPrintDialog();
            //打开IE的打印预览会话框
            this.webBrowser1.ShowPrintPreviewDialog();
            //打开IE的保存 会话框
            this.webBrowser1.ShowSaveAsDialog();

 

posted @ 2013-09-27 01:56  kongfl888  阅读(701)  评论(0编辑  收藏  举报