隐藏/显示 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);

posted on 2011-04-17 21:36  Y#  阅读(908)  评论(0编辑  收藏  举报

导航