SweatCoder SweatCoder - 8 months ago 113
C# Question

How to launch MS Edge from c# winforms?

The executable MicrosoftEdge.exe cannot be launched directly like other EXEs in windows. I confirmed that from my own experience, and by reading this and that.

I also cannot launch it via

in my c# winforms app.

There must be some way to launch Edge from winforms without resorting to 3rd-party app and other clutter. I have already tried the following, with no success:

Process.Start("MicrosoftEdge.exe") //- unhandled exception
Process.Start("microsoft-edge") //- unhandled exception
Process.Start("%windir%\explorer.exe shell:Appsfolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge") //- unhandled exception
Process.Start(@"c:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe")` //- no exception, but nothing happens

Note: I can easily launch Chrome and Firefox using method #1 above.

How can I launch MS Edge from my .net winforms app?


The ":" at the end is inportant, otherwise won't work

To open in blank:


or specifying an address: