Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good evening sir, i'm working on c# windows forms and i have done one application i.e. Photoviewer that have browse button when user clicks on it openfiledialog will gets displayed then user select some images then those are displayed in picturebox user can navigate through images using prev and next buttons working fine and i deployed it. But when user select some images and right click on them click on open with and select my photoviewer app as default program but it shows an error how can i get that selected images into picturebox
Posted
Comments
Sergey Alexandrovich Kryukov 25-Nov-11 5:30am    
System.Windows.Forms? Add it to the tags!
--SA
BillWoodruff 25-Nov-11 12:51pm    
We need a very detailed description of how you have registered your application so that it appears in Windows Explorer Windows, or on the Desktop, context-click "Open-With" Menu.

And we need to know exactly what error message is shown, and when is it shown: when the user selects a picture on the Desktop, and the chooses your application to open it with: does your application even open ?
Rao karthik 26-Nov-11 3:11am    
I just deployed my app. Using setup project template and installed on program files and i got shortcut of my app on desktop, all programs but i dont know how to register my app in windows explorer and i got an error saying invalid win32 appliction without starting my app. So please give me your suggestions sir...

1 solution

I hope this CodeProject article will help you: "Custom file extension control" by Kasic Slobodan[^].

Also see here on CP: [^], and: [^].
 
Share this answer
 

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