Yahya Hussein
Yahya Hussein

Reputation: 9121

How to open photo viewer in full screen

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

Answers (1)

TigerLionCheetah
TigerLionCheetah

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".

Link to a similar question.

Upvotes: 1

Related Questions