Hi all..
I have for a time now tried to take advantage of some of the implementations the Shell32 api can offer regards to file management, mainly i have been successful. The one thing i have not been able to do is implement the explorer context menu in my applications. I want to be able to get the same context menu Windowns explorer shows, with all the addins that may include (eg. winrar-addin, sendto, openwith and so forth) in my application. I have found code for this in both C++ and som e VB like apps, but nothing in C#. I would be extreamly glad if someone who knows how to do this could post a small app where this is done or perhaps post a link to a site where this information can be found!!
If its still unclear what i mean:
1. i have a app that has a listview where files/folders are displayed (explorer like app)
2. right-click on a file/folder displays the same context menu Explorer would show for that
specific file/folder
3 Thats it :D
and i am using VS C# 2003
/
homer: "...i am not a praying man but if you are up there please help me superman..."

Shell Context menu (aka Win Explorer context menu) in my app?.. how?
xeondev
I think what we need here is a Primary Interop Assembly for the shell, similar to the ones that MSFT has released for Office. Hey MSFT, are you listening
Abdel1
Thanks for taking a look at my dilema m8.. but I have seen those tutorials before and they dont really give me the tools i need for solving my problem...
Aleniko29139
Talking way above my head though dude ! :o)
I'll definately stay tuned to this one though, the amount of web pages I've trawled through trying to find a solution to this, would be fantastic If you get it working...
Blast
This gives me a bunch of ideas to get other shell interfaces into a .NET project. I previously generated tool libraries with MIDL but could never get them converted an RCW. I need to play with this new-found treasure for a while, stay tuned. If you want to play yourself and don't have regtlib.exe (can't remember where I got it) drop me an email. You'll find the address in my profile, |Monkeytail| = @
Kevin S Won
Did you have any luck with this
Its absolutly doing my head in now, 6 Billion articles on how to add context menu "extensions" but not ONE that shows you how to show the menu in the first place !!
From what I've read, creating extensions in the first place, adding all the neccessary entries to the registry, defining the handler etc so they show up on the shell context menu, is the difficult bit.... So either (1) its so easy that nobody has ever felt the need to report how they did it and we're both missing something, or (2) Its not possible, only it clearly is cos lots of other stuff does it....
Been going round in circles for weeks now with this. I'd really like to be able to do it without delving into COM. Best result for me would be to be able to drop an object onto my form, pass it an array of filenames and type : MyShellContext.show.
Grrr
Polarbear541
netpicker9
Hi all..
I have been out off commission for a week now.. Tried to recap what’s been going on and its really nice to see that others have finally caught up to this problem as well :D
I thought that I was just missing something really simple.. Not that I understand all that’s being said so far.. :S it’s a little beyond my skills..
I have found an article though that claims to do what I am looking for. The problem is its written in VS 2005 and uses partial classes and other funky stuff not found in vs 2003 .Net.. I am having some problems converting it.. maybe it can help you guys on your way to find a solution..
http://www.codeproject.com/shell/shellcontextmenu.asp
Check it out..
mrshrinkray
Flap
I have since found this (Sorry, cant get the linky insert to work)
http://btmtz.mvps.org/shellmenu/
Its in VBClassic, works a treat, but the code importer into dotnet throws like a million errors that are beyond my skills to sort through....
FlávioOliveira