-2

I am a c# noob and I am making a console app to sporadically make you lose the game by open the website and writing "the game!"

I am trying to make it open a link to the game's website, but it does not work.
What I am using, but doesn't work is what MS docs says which is System.Diagnostics.Process.Start("http://website.com");
I use windows 11, MS edge for default browser.

Unresolved
  • 17
  • 6

1 Answers1

1

How to open a web page from my application?

the default for the useShellExecute is now false, so you have to explicitly set it as true.

NimsTay
  • 17
  • 2
  • If another post has the answer, we don't copy/paste the content, we mark the question as a duplicate. Please don't post answers like this. Thanks – DavidG Jul 12 '22 at 20:17