Groups | Blog | Home
all groups > vb.net > february 2008 >

vb.net : Adding a right-click context menu entry to Window Titlebar


SupportAV
2/5/2008 9:37:53 AM
I want to add an entry to the context menu of every window's titlebar.
I don't think the menu is technically a context menu, but more like a
shell menu.

The closest I've come is some vague C++ code, but it was supposedly
unreliable in all cases.

I need to be able to create a hook in such a way so that any window
automatically has a custom menu entry in the right-click title bar
menu.

If anyone knows of a working example, or better yet a reference guide
illustrating the example and explaining what the limitations and
pitfalls are, I'd be very greatful. I'd especially like to know how a
progam that is launched from such a menu would run in terms of
rowe_newsgroups
2/5/2008 10:34:58 AM
[quoted text, click to view]

Why exactly do you want to change this? It seems very dangerous to me
to change the default behavior of the Window's interface. It will only
lead to overlooked features or confused users (both are very bad
things).

Thanks,

SupportAV
2/5/2008 10:56:06 AM

I'd like to be able to create a custom kill utility so that you could
right-click on the window and you'd have "Kill Process" in the context
SupportAV
2/5/2008 10:57:16 AM
I want to be able to create a custom "Kill Processes" menu on any
rowe_newsgroups
2/5/2008 12:34:54 PM
[quoted text, click to view]

I have seen .NET code for adding buttons to the title bar, but I
haven't seen any that replace the context menu. I don't have the link
to the article for the custom button, or even the article's name, but
I do know I saw it on codeproject.com a couple months back. Good luck
searching!

Thanks,

AddThis Social Bookmark Button