Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 4: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 at 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 at 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
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 350
2 ProgramFOX 275
3 Maciej Los 275
4 CHill60 260
0 OriginalGriff 360
1 ProgramFOX 265
2 Maciej Los 235
3 CHill60 200
4 RyanDev 170


Advertise | Privacy | Mobile
Web03 | 2.8.150331.1 | Last Updated 26 Apr 2013
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