Open image in Windows Photo Viewer

windows photo viewer windows 7
windows photo viewer windows 10
restore windows photo viewer
microsoft photos
restore windows photo viewer windows 7
windows photo viewer windows 10 missing
best photo viewer windows 10
reinstall windows photo viewer

How to open .jpg image in Windows Photo Viewer from C# app?

Not inside app like this code,

FileStream stream = new FileStream("test.png", FileMode.Open, FileAccess.Read);
pictureBox1.Image = Image.FromStream(stream);
stream.Close();

Start it in a new Process

Process photoViewer = new Process();
photoViewer.StartInfo.FileName = @"The photo viewer file path";
photoViewer.StartInfo.Arguments = @"Your image file path";
photoViewer.Start();

How to Make Windows Photo Viewer Your Default Image Viewer on , Windows 10 uses the Photos app as the default app to open image files with instead now. By default, Windows Photo Viewer is no longer listed in� Windows Photo Viewer isn't part of Windows 10, but if you upgraded from Windows 7 or Windows 8.1, you might still have it. To check, press and hold (or right-click) a photo in File Explorer, and select Open with. If Windows Photo Viewer isn't in the list, you cannot install it on Windows 10.

I think you can just use:

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

And this will use the standard file viewer associated with .jpg files - by default the windows picture viewer.

Restore Windows Photo Viewer in Windows 10, Find the Windows Photo Viewer from the list and after selecting it, click on “Set This Program as Default”. Now you are done. Now right click on any picture and select “Open with” and now select “Windows Photo Viewer” from list. Now your every photo will open in “Windows Photo Viewer” by default. Choose Windows Photo Viewer and exit the Settings menu, and you're done -- photos will now open up in Windows Photo Viewer. Read more from TechRepublic: 20 pro tips to make Windows 10 work the way

The code fetch photo from ftp and shows the photo in Windows Photo Viewer. I hope it will usefully for you.

  public void ShowPhoto(String uri, String username, String password)
        {
            WebClient ftpClient = new WebClient();
            ftpClient.Credentials = new NetworkCredential(username,password);
            byte[] imageByte = ftpClient.DownloadData(uri);


            var tempFileName = Path.GetTempFileName();
            System.IO.File.WriteAllBytes(tempFileName, imageByte);

            string path = Environment.GetFolderPath(
                Environment.SpecialFolder.ProgramFiles);

            // create our startup process and argument
            var psi = new ProcessStartInfo(
                "rundll32.exe",
                String.Format(
                    "\"{0}{1}\", ImageView_Fullscreen {2}",
                    Environment.Is64BitOperatingSystem ?
                        path.Replace(" (x86)", "") :
                        path
                        ,
                    @"\Windows Photo Viewer\PhotoViewer.dll",
                    tempFileName)
                );

            psi.UseShellExecute = false;

            var viewer = Process.Start(psi);
            // cleanup when done...
            viewer.EnableRaisingEvents = true;
            viewer.Exited += (o, args) =>
            {
                File.Delete(tempFileName);
            };


        }

Best Regards...

How to Enable Windows Photo Viewer in Windows 10, Restore the Windows Photo Viewer on Windows 10 because of the fact that it takes ages to Duration: 4:48 Posted: Aug 6, 2018 How to open JPG images with Windows Photo Viewer I have a new installation of Windows 10 - not an upgrade - and Windows Photo Viewer is the default application for viewing .TIF files. How can I make it the default application for opening .JPG files as well as I dislike the Photos app?

Restore the Windows Photo Viewer on Windows 10, One quick method of achieving this is to find an image file in File Explorer, right- click it and choose Open with > Choose another app. Select� ImageGlass is a lightweight, versatile image viewing application that is designed to take the place of Photo Viewer in Windows 10, 8, 7 and Vista, especially those installations that may have trouble displaying PNG and GIF files in Photo Viewer.

How to use Windows Photo Viewer as your default image viewer in , To browse photos within a folder, open a photo from the Folders view or File Explorer, then swipe right or use the arrow keys to see the next item. After you download and install the program, you will be able to view HEIC images within Windows Photo Viewer. This won't allow you to open it in just any program, unfortunately. Photoshop and even

Photo viewer for Windows 10, Photos app takes a little bit time in opening images or photo files which becomes quite annoying with time. I never prefer modern or metro apps over traditional�

Comments
  • Every one know that, but what is the name of the default Image viewer in Windows?
  • The best part about using Process.Start() is that it doesn't care what sort of file you give it, it will just use the default viewer. i.e. a PDF will automagically open in Adobe Viewer.
  • Didn't work for me. The specified executable is not a valid application for this OS platform
  • @SaeedNeamati ... without knowing much about your OS setup, I can't help specifically. You might find the following will help you look into this ... stackoverflow.com/questions/46808315/…