简体   繁体   中英

How to launch a url in the new window of legacy edge browser using C#

Thanks in advance,

I want to launch my url in the new window of the legacy edge browser.

As of now, every time I launch the url, a new tab gets added to the existing window which I don't want.

Here is what I have tried:

Uri url = new Uri("https://www/google.com");
 Process.Start(new ProcessStartInfo
 {
    FileName = "microsoftedge.exe",
    Arguments = url.ToString() + "--new window",
    WindowStyle = ProcessWindowStyle.Normal
 });

Use the switch at first and only then the url:

"--new-window" + url.ToString(),

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