在IE中打开新标签 [英] Open new tab in IE

查看:175
本文介绍了在IE中打开新标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的代码在Internet Explorer中打开网站

i'm using the following code to open site in internet explorer

ProcessStartInfo startInfo = new ProcessStartInfo
{
  Arguments = "http://www.mysite.com",
  FileName = "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
  RedirectStandardInput = true,
  UseShellExecute = false
};
System.Diagnostics.Process process = System.Diagnostics.Process.Start(startInfo);



我怎么能在新标签中打开我的网站不是一个新的浏览器考虑到已经有开???

How can i open my site in a new tab not a new browser considering that there is a browser already opened???

好了,

我们正在建立一个应用程序,其中一个浏览器用户可以使用2个选项:

We are Building an application where the user can use 2 options:

1 - 使用默认浏览器

1-Using the default browser.

2 - 使用下列选项之一浏览器:IE,谷歌Chrome和Firefox(现在)

2- use one of the following browsers: IE,Google Chrome and Firefox (for now).

和选择至极浏览器whant在他的应用程序中使用后,他必须选择,如果他想要打开的请求将在新窗口或新标签页

and after choosing wich browser whant to use in his application, he must choose if he want to open the requested page in a new window or in a new tab.

有关为例:如果他选用IE浏览器新标签选项,这样系统将尝试找到打开最后一页该程序并刷新它是否存在,如果没有,他会在新标签中打开它。

for exemple: if he choosed IE with new tab option, so the system will try to find the last page opened by the program and refresh it if exist, and if not he will open it in a new tab.

关于IE浏览器我认为EricLaw -MSFT帮我找到了方法来打开一个新标签和一个新的窗口,我还是要知道怎样才能得到一个打开的选项卡(已通过我的程序打开的),需要刷新。

Concerning the IE browser i think that EricLaw -MSFT helped me to found a way to open a new tab and a new window, i still have to know how can i get an opened tab (already opened by my program) and refresh in need.

我还要做对火狐和谷歌Chrome相同

I still have to do the same for Firefox and Google Chrome.

谢谢您的回答,再次对不起我的英文不好:)

Thanks for your answers, and sorry again for my bad english :)

推荐答案

您可以简单地使用:

Process.Start("http://www.mysite.com");

这将不会在IE必然开放,但在用户的默认浏览器作为一个新的选项卡(如果浏览器支持它),这可能是用户想要什么反正;)

This will not necessarily open in IE, but in the users default browser as a new tab (if the browser supports it) and that is probably what the user wants anyway ;)

这篇关于在IE中打开新标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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