Reputation: 9121
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?
Upvotes: 0
Views: 2873
Reputation: 178
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".
Upvotes: 1