How do you show the Windows Explorer context menu from a C# application?
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. Rowland Shaw There's a very good tutorial (albeit in C++) about hosting an IContextMenu on Raymond Chen's blog in 11 parts (in order): Initial foray Displaying the context menu Invocation location Key context Handling menu messages Displaying menu help Invoking the default verb Optimizing for the default command Adding custom commands Composite