Click here to Skip to main content
15,896,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a windows forms project and I created an image viewer with different functions. Now I want to know how to make my program the default windows image viewer. I tried to right click an image file, then I selected Open with, I selected my program but it didn't work. It just opened my program.
Posted

1 solution

You problably didn't include code in your app to parse command line arguments. Environment.GetCommandLineArgs[^]
 
Share this answer
 
Comments
fjdiewornncalwe 28-Sep-12 10:32am    
+5. Absolutely.
AfterShave 28-Sep-12 14:48pm    
Sorry,I don't know to use the code?
Dave Kreskowiak 28-Sep-12 16:15pm    
That's why you read the documentation so you can figure out how to use the code.

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