mickn66 Posted June 2, 2005 Posted June 2, 2005 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 Quote
Recommended Posts