I’m trying to display standard file/directory context menu in WinForms application – I’d like to enable the user to do things with files in my application as he could in Explorer.
There should be two options
- popup the context menu with some system call
- read everything from the system context menu and insert it into my context menu
Could you please point me in the right direction? Thanks
I have written a .NET library to allow this. You can find it here:
http://gong-shell.sourceforge.net/
The class you’re looking for is ShellContextMenu within that library.