Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET programming
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 at 28-Sep-12 10:32am
+5. Absolutely.
AfterShave at 28-Sep-12 14:48pm
Sorry,I don't know to use the code?
Dave Kreskowiak at 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
0 Sergey Alexandrovich Kryukov 6,425
1 OriginalGriff 5,918
2 Peter Leow 2,514
3 Maciej Los 2,263
4 Abhinav S 2,249

Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 28 Sep 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