Click here to Skip to main content
12,996,975 members (125,609 online)
Rate this:
Please Sign up or sign in to vote.
See more:
hi all
i am displaying images from folder in listview but i want when click on each of these images open it in any image viewer program like (windows photo view) but i do not know how to make it
please help
thank u
Posted 12-Oct-12 5:38am
Wes Aday 12-Oct-12 11:53am
Sergey Alexandrovich Kryukov 12-Oct-12 13:35pm
I answered with more reasonable alternative, please see.
Your advice is credited, of course.
Sergey Alexandrovich Kryukov 12-Oct-12 13:34pm
Please always tag your application type of UI library you want to use. WPF? Forms? Silverlight? Metro? ASP.NET? What?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Opening an external program is not a good option (but Wes Aday answered hot to do it: System.Diagnostics.Process.Start(/* ... */)). You won't be able to control that process, as processes are well isolated, unless the process is specifically designed to participate is some collaboration, like Automation.

It would be much better to use some in-proc library. In this case, it would be one of the image components for .NET. Too bad, you did not tag your application type of UI library you want to use, so the answers will be very different depending on that. Not to worry, you will easily find out. For example:[^].

Good luck,
Maciej Los 12-Oct-12 13:50pm
Good answer, my 5!
Sergey Alexandrovich Kryukov 12-Oct-12 14:04pm
Thank you, Maciej.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100