隐藏/显示 Office 标题栏 工具栏 winform webBrowser
隐藏/显示 Office 标题栏 工具栏 winform webBrowser
object axWebBrowser = this.webBrowserInside.ActiveXInstance;
Object refmissing = System.Reflection.Missing.Value;
object[] args = new object[4];
args[0] = SHDocVw.OLECMDID.OLECMDID_HIDETOOLBARS;
args[1] = SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER;
args[2] = refmissing;
args[3] = refmissing;
axWebBrowser.GetType().InvokeMember("ExecWB", BindingFlags.InvokeMethod, null, axWebBrowser, args);