Click here to Skip to main content
12,075,066 members (65,524 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
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
 
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 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 | Mobile
Web04 | 2.8.160208.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2016
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