Click here to Skip to main content
13,193,441 members (23,773 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
hi Programmers
Can any one help me ??
How do I add my Program to (open with context menu)
For example : If I designed a media player program ..And install it on my computer
how to open any mp3 file by Right Click and open with
Thank you. I hope the question is clear .
my language is vb.net
Posted 25-Apr-13 3:53am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

I found several articles via Google using the search string add entries to windows context menu

Here are just two of them:

Adding Entries to the Standard Context Menu[^]

How to Add Any Application Shortcut to Windows Explorer’s Context Menu[^]
  Permalink  
Comments
michael azzar 25-Apr-13 10:18am
   
Thank you for links .it's very useful ☺
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

You'll have to write a shell extension. From what I can tell, it can be done in .net 4.0 now (although it's still recommended to do it in unmanaged code). Here's an example provided by micorsoft. It's not beginner level stuff, and the example provided is C++ - fair warning.

If this is the first time you're reading the term "shell extension", then you might have a look here: The Complete Idiot's Guide to Writing Shell Extensions. No offense intended - that's just the name of the article. Good luck.

- Pete
  Permalink  
Comments
michael azzar 13-May-13 12:56pm
   
Thank you very much it's very helpful

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 |
Web03 | 2.8.171018.2 | Last Updated 26 Apr 2013
Copyright © CodeProject, 1999-2017
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