AvocadoSoftware.com

Software For Hardcore Developers
Welcome to AvocadoSoftware.com Sign in | Join | Help
in Search

Derick Baileys old blog archives - go to derickbailey.com for new contents

VB.NET: Create Windows Explorer Context Menu handlers (IContextMenu, IShellExtInit)

Last night, I was digging around on the web for some sample .NET code on how to create a Windows Explorer Context Menu similar to what WinZip does (with the sub-menu items and all that good jazz). I came across the typical MSDN Documentation that tells me about Creating Context menu Handlers in C++, using IContextMenu and IShellExtInit.

I thought I might be able to trudge through and create the appropriate interface definitions in .NET, myself, and I started digging around for some more examples of importing Win32 API Interfaces into .NET, when I came across the most amazing page: Edanmo's VB Page

This guy (Eduardo Morcillo) is amazing... not only has he already done all the work of porting IContextMenu and IShellExtInit into VB.NET, but he has also wrapped it all up into his ContextMenuHandlerBase class, making it a no-brainer to add your own context menu's to ANY file type with nothing more difficult than creating standard WinForms MenuItems.

Now I know why guys like this are Microsoft MVPs... they truely are valuable players in the community. I can't even begin to guess at the hours of work that he has saved me, and that he went through to create this chunk of code.

 

Published Monday, November 22, 2004 2:58 PM by dredge
Filed Under: ,
New Comments to this post are disabled

This Blog

Post Calendar

<November 2004>
SuMoTuWeThFrSa
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

Advertisement

News

this is my old blog archives - go to http://derickbailey.com for updates

Syndication

Advertisement

Powered by Community Server, by Telligent Systems