//禁用脚本错误等类似的窗口信息
this.webBrowser1.ScriptErrorsSuppressed = true;
//禁用右键菜单
this.webBrowser1.IsWebBrowserContextMenuEnabled = false;
//禁用键盘快捷键
this.webBrowser1.WebBrowserShortcutsEnabled = false;
//打开IE打印机会话框
this.webBrowser1.ShowPrintDialog();
//打开IE的打印预览会话框
this.webBrowser1.ShowPrintPreviewDialog();
//打开IE的保存 会话框
this.webBrowser1.ShowSaveAsDialog();
this.webBrowser1.ScriptErrorsSuppressed = true;
//禁用右键菜单
this.webBrowser1.IsWebBrowserContextMenuEnabled = false;
//禁用键盘快捷键
this.webBrowser1.WebBrowserShortcutsEnabled = false;
//打开IE打印机会话框
this.webBrowser1.ShowPrintDialog();
//打开IE的打印预览会话框
this.webBrowser1.ShowPrintPreviewDialog();
//打开IE的保存 会话框
this.webBrowser1.ShowSaveAsDialog();
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23109131/viewspace-630548/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23109131/viewspace-630548/