使用VB.net在IE中隐藏工具栏 [英] Hide toolbars in IE using VB.net

查看:104
本文介绍了使用VB.net在IE中隐藏工具栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在尝试从用VB.net编写的应用程序打开一个网页(正在运行).但是,我需要在IE窗口中隐藏所有工具栏.现在我正在使用Process.Start打开一个新窗口,但是想像一下我还需要其他东西来更改IE中的设置吗?有什么办法吗?谢谢!

System.Diagnostics.Process.Start("IExplore.exe",url)

Hello,

I''m trying to open a webpage from my application written in VB.net (which is working). However, I need to hide all toolbars in the IE window. Right now i''m using Process.Start to open a new window, but imagine I would need something else to change settings in IE? Any solutions? Thanks!

System.Diagnostics.Process.Start("IExplore.exe", url)

推荐答案

要控制外部进程始终是一个问题.进程之间完全隔离,并且IExplore.EXE并不是您可以根据需要设计的应用程序.相反,要获得完全控制,如何将控件System.Windows.Forms.WebBrowserBaseSystem.Windows.Controls.WebBrowser与WPF应用程序窗体一起使用?参见:
http://msdn.microsoft.com/en-us/library/system. windows.forms.webbrowser.aspx [ ^ ],
http://msdn.microsoft.com/zh-cn/library/system.windows.controls.webbrowser%28v = vs.95%29.aspx [ http://www.w3schools.com/jsref/met_win_open.asp [ ^ ].

这取决于您究竟需要什么,取决于您的最终目标.

—SA
Starting external process is always a problem when you want control over it. Processes are well isolated, and IExplore.EXE is not your application which you could design to your needs. Instead, to have full control, how about using the control System.Windows.Forms.WebBrowserBase or System.Windows.Controls.WebBrowser with Forms of WPF application? See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser%28v=vs.95%29.aspx[^].

Also, please see my comment to the question. I''m not sure what are your requirements and what is the functionality of software you want to open your URL with. You could use JavaScript window.open function which has detailed view options for the window, see http://www.w3schools.com/jsref/met_win_open.asp[^].

It depends on what exactly you need, on your ultimate goals.

—SA


这篇关于使用VB.net在IE中隐藏工具栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆