Click here to Skip to main content
11,479,034 members (63,693 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 6:38am
Comments
Wes Aday at 12-Oct-12 11:53am
   
Process.Start()
Sergey Alexandrovich Kryukov at 12-Oct-12 13:35pm
   
I answered with more reasonable alternative, please see.
Your advice is credited, of course.
--SA
Sergey Alexandrovich Kryukov at 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?
--SA

1 solution

Rate this: bad
good
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:
http://bit.ly/OYFJZF[^].

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 210
1 F-ES Sitecore 195
2 OriginalGriff 130
3 Frankie-C 120
4 DamithSL 95
0 Sergey Alexandrovich Kryukov 7,890
1 OriginalGriff 7,366
2 Sascha Lefèvre 3,064
3 Maciej Los 2,491
4 Richard Deeming 2,335


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2015
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