Click here to Skip to main content
16,011,711 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
[no name] 12-Oct-12 11:53am    
Process.Start()
Sergey Alexandrovich Kryukov 12-Oct-12 13:35pm    
I answered with more reasonable alternative, please see.
Your advice is credited, of course.
--SA
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?
--SA

1 solution

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
 
Share this answer
 
Comments
Maciej Los 12-Oct-12 13:50pm    
Good answer, my 5!
Sergey Alexandrovich Kryukov 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900