Click here to Skip to main content
13,352,428 members (35,619 online)
Rate this:
Please Sign up or sign in to vote.
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 28-Sep-12 4:10am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You problably didn't include code in your app to parse command line arguments. Environment.GetCommandLineArgs[^]
Marcus Kramer 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2018
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