0

I need to view an image using windows photo viewer, I tried the solutions suggested here

This code worked for me:

Process.Start(@"C:\MyPicture.jpg");

My question is, what parameters I should pass to open the image in fullscreen?

Yahya Hussein
  • 8,767
  • 15
  • 58
  • 114

1 Answers1

1

Do something like this -

ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\MyPicture.jpg");
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
Process.Start(startInfo);  

Note- There is no way to make it "Full Screen", this above code only "Maximizes".

Link to a similar question.

TigerLionCheetah
  • 178
  • 3
  • 19
  • Same as [the other](https://stackoverflow.com/questions/45819596/how-to-open-photo-viewer-in-full-screen#comment78596840_45819648): **Full-screen**, not _maximized_, they're different things. BTW there is a way, see https://stackoverflow.com/q/17991937/1207195 – Adriano Repetti Aug 22 '17 at 13:58