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