简体   繁体   中英

Process.Start(URL) using only 1 tab

I am sorry if I am posting a common question, if thats what this is. I am not sure how to look this up to find a good answer as to how to do this though. I have searched for days about this, and with no answers, my last resort is to ask :)

I have this C# application I have been working on for a while off and on these past few years. The most recent request is to use the Link labels I am using to show info, and to bring a URL up in a browser. I am using this:

System.Diagnostics.Process.Start(URL);

The trouble is, I feel this is going to cause issues since hundreds of clicks is a possibility, I want to make it so that it only uses 1 tab, instead of opening new tabs every time another link is clicked. Is this possible? Am I using the wrong process to do what I want?

If you want to force the usage of IE, you can do this:

Process.Start("IEXPLORE.EXE","–framemerging URL");

For more info: https://msdn.microsoft.com/en-us/library/ie/hh826025%28v=vs.85%29.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM