473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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\ContextMenuHandler, 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.languages.vb, vb classic
..general.discussion (pertinent to all three, thanks).

--
Mike Wilson
Evolved Software Studios Ltd
www.evolvedsoftwarestudios.com
Jul 21 '05 #1
1 1583
Hi,

Maybe this will help

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

Ken
----------
"Mike Wilson" <info-at-remove-the-obvious-evolvedsoftwarestudios.com> wrote
in message news:42***********************@ptn-nntp-reader01.plus.net...
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\ContextMenuHandler, 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.languages.vb, vb classic
..general.discussion (pertinent to all three, thanks).

--
Mike Wilson
Evolved Software Studios Ltd
www.evolvedsoftwarestudios.com

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: R.Marquez | last post by:
I just happened to bump into this today when I went to the Win32 Python Extensions page. I think the M.H. and his team are a bit too modest. Quote: "win32com.shell grows many more interfaces,...
0
by: Mike Wilson | last post by:
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...
1
by: Brian Martel | last post by:
I am trying to create a dynamic flyout submenu off of a contextmenu. I can right click and get the base contextmenu ok. On the Popup event I add MenuItem's to the collection of one of the items so...
0
by: Valerie Hough | last post by:
I have two different cases: 0) I right click the mouse button on a list box on my form, then in the Popup handler for the list box I use SendKeys to send three characters at once (the mnemonics...
2
by: Derrick | last post by:
I've been working on an application which has a NotifyIcon (system tray icon), and a corresponding ContextMenu. I want to be able to update this menu dynamically. However, when I make changes to...
3
by: Libby Sharf | last post by:
Hello, I have several ContextMenus and I want to connect them to the GridControl's ContextMenu property depending on the row that was right clicked. Is there an event that is raised just before...
2
by: Martin Carpella | last post by:
Hi! Can anybody give me a pointer if/how I could retrieve the Explorer context menu of a given file in C#? Thanks in advance, Martin
7
by: wandii | last post by:
Hi, I am trying to show the shortcut menu on a richtextbox control by adding the contextmenu component onto the form. The richtextbox property is assigned to the contextmenu. I created my...
0
by: snehal12345 | last post by:
I have created 1 contextmenu for a listbox in C#.net 3.0 . For that context menu I have written one event handler for mouseup event . But when i click on contextmenu item that event is not captured....
3
by: Shafiq | last post by:
Hi, I am trying to insert a new toolbar button to the windows explorer menu. I an able to locate the correct ToolbarWindow32, and inserted a button using the code snippet shown below. However...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.