Explorer ShellExtension ContextMenu Handler...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Wilson

    #1

    Explorer ShellExtension ContextMenu Handler...

    Ok,

    I've been pulling my hair out for hours now :( I know I've asked this
    previously, but the question has now changed slightly and taken on a new
    direction...:

    I'm looking for a coded example (there are a few on the internet, but
    documentation is utterly horrendous!), preferably in VB.NET, or VB6 or C#
    (preference in this order) to allow me to create context menus dynamically
    at runtime when the user right clicks a file (or set of files) or a folder
    in explorer (or on the desktop).

    I'm attempting to mimic the operation of utilities such as Winzip, and CD
    burning style utilities.

    I've got as far as putting a key in the registry at:
    HKCR\*\ShellEx\ ContextMenuHand ler, with a REG_SZ value holding the GUID of
    my created COM .dll CLSID (Now here's a problem for you - I want this in
    ..NET, but can only create in COM??).

    However where I go from here, I have no idea! I've seen all manner of
    examples creating a single entry in the context menu - but nothing with
    submenus. Nothing in .NET with any code comments and documentation.

    Has anyone done this, could you proffer some advice please? There's nowt out
    there, so some original thought is required into the Shell/Win32 API!

    Warmest Regards!

    Mike

    XPosted to: dotnet.general, dotnet.language s.vb, vb classic
    ..general.discu ssion (pertinent to all three, thanks).

    --
    Mike Wilson
    Evolved Software Studios Ltd



  • Ken Tucker [MVP]

    #2
    Re: Explorer ShellExtension ContextMenu Handler...

    Hi,

    Maybe this will help

    http://msdn.microsoft.com/msdnmag/is...l/default.aspx

    Ken
    ----------
    "Mike Wilson" <info-at-remove-the-obvious-evolvedsoftware studios.com> wrote
    in message news:4279645c$0 $83059$ed2619ec @ptn-nntp-reader01.plus.n et...
    Ok,

    I've been pulling my hair out for hours now :( I know I've asked this
    previously, but the question has now changed slightly and taken on a new
    direction...:

    I'm looking for a coded example (there are a few on the internet, but
    documentation is utterly horrendous!), preferably in VB.NET, or VB6 or C#
    (preference in this order) to allow me to create context menus dynamically
    at runtime when the user right clicks a file (or set of files) or a folder
    in explorer (or on the desktop).

    I'm attempting to mimic the operation of utilities such as Winzip, and CD
    burning style utilities.

    I've got as far as putting a key in the registry at:
    HKCR\*\ShellEx\ ContextMenuHand ler, with a REG_SZ value holding the GUID of
    my created COM .dll CLSID (Now here's a problem for you - I want this in
    ..NET, but can only create in COM??).

    However where I go from here, I have no idea! I've seen all manner of
    examples creating a single entry in the context menu - but nothing with
    submenus. Nothing in .NET with any code comments and documentation.

    Has anyone done this, could you proffer some advice please? There's nowt out
    there, so some original thought is required into the Shell/Win32 API!

    Warmest Regards!

    Mike

    XPosted to: dotnet.general, dotnet.language s.vb, vb classic
    ..general.discu ssion (pertinent to all three, thanks).

    --
    Mike Wilson
    Evolved Software Studios Ltd




    Comment

    Working...