Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm trying to write a program that adds a menuitem to the contextmenu of any textboxes in any windows program. The menuitm I'm talking about has a submenu with a number of choices, each choice does a different thing - but what each choice does is not important for this question. I know I can create a system-wide mouse hook to catch right-clicks on any application on the system - but once I've done that, I want to display whatever contextmenu the application in question uses for text boxes, but with my added item as well. Is this possible? How can I do it? I know how to do the hook part of it so I don't need that explained to me - although, if it's possible to do it without the mouse hook, that would probably be even better.

 

I would prefer doing it with .NET - I know a system-wide hook requires unmanaged code, that's no problem, I'll write that part in c++. I would prefer to write the rest of it in VB.net or c#.net.

 

Thanks

  • 4 weeks later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...