Click here to Skip to main content
Rate this: bad
good
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 3:10am

1 solution

Rate this: bad
good
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[^]
  Permalink  
Comments
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 OriginalGriff 730
1 CPallini 320
2 Sergey Alexandrovich Kryukov 305
3 BillWoodruff 295
4 Peter Leow 255


Advertise | Privacy | Mobile
Web01 | 2.8.141029.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2014
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