How do you show the Windows Explorer context menu from a C# application?

Jon Tackabury picture Jon Tackabury · Jan 16, 2009 · Viewed 9.5k times · Source

I have a file listing in my application and I would like to allow people to right-click on an item and show the Windows Explorer context menu. I'm assuming I would need to use the IContextMenu interface, but I'm not really sure where to start.

Answer

Grokys picture Grokys · Jan 16, 2009

I have written a library that might be able to help you. You could use the controls provided by the library, or if you don't want to do that, looking through the code may give you an answer.

You can find the library at: http://gong-shell.sourceforge.net/

Please let me know if this helped!