Reputation: 351
How is it possible to show a photo with Windows photoviewer and be able to navigate forward and backward to the other photos in the directory.
At the moment ich just call the assigned application
var fileNameComplete = @"C:\Temp\sample_photo.png";
Process.Start(fileNameComplete);
and this opens MS photo (in my case), but I am not able to navigate foward and backward to the other pictures in the directory.
Upvotes: 0
Views: 123
Reputation: 3495
You must give the executable file of picture viewer
as a FileName parameter to the process:
Process photoViewer = new Process();
//executable file of picture viewer
photoViewer.StartInfo.FileName = @"F:\Google.Picasa\Picasa3\Picasa3.exe";
photoViewer.StartInfo.Arguments =ImagePathString;
photoViewer.Start();
Upvotes: 1