如何使visual studio项目在特定浏览器中打开链接? [英] How do I make visual studio project open a link in specific browser?

查看:471
本文介绍了如何使visual studio项目在特定浏览器中打开链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Windows窗体应用程序每10秒重新打开一个链接,但我希望它在另一个浏览器中打开而不是我的默认设置。谁能帮帮我吗 ?? thnx提前。



我尝试过的事情:



上网冲浪和youtube的答案

i ve been working on windows form application to re-open a link every 10 sec, but i want it open in another browser rather than my default. can anyone please help me ?? thnx in advance.

What I have tried:

surf google and youtube for an answer

推荐答案

这可能不实用 - 你绝对不能保证目标PC上安装了特定的浏览器。它们可能在你的身上,但这并不意味着它们在每个人身上。



你能做的最好的就是希望,几乎:

It's probably not practical - you have absolutely no guarantee that a specific browser is installed on the target PC. They may be on yours, but that doesn't mean they are on everybody's.

The best you can do is hope, pretty much:
Process.Start("iexplore", @"http://www.codeproject.com/Lounge.aspx");

将为IE做,但你必须找到其他浏览器的EXE,并希望他们接受命令行争论 - 根本不保证!

would do it for IE, but you'd have to locate the EXE for other browsers, and hope they accept a command line arguement - not guaranteed at all!


这篇关于如何使visual studio项目在特定浏览器中打开链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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