Click here to Skip to main content
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 Sascha Lefévre 485
1 Sergey Alexandrovich Kryukov 325
2 Maciej Los 240
3 Abhinav S 174
4 Peter Leow 120
0 Sergey Alexandrovich Kryukov 6,773
1 OriginalGriff 6,311
2 Maciej Los 2,692
3 Peter Leow 2,654
4 Abhinav S 2,562


Advertise | Privacy | Mobile
Web03 | 2.8.150414.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