I've extended the Windows.Forms.ContextMenu class to provide a PopDown event, so that you can detect when the menu closes.
You can extend the normal MainMenu and other MenuItems in the same way by modifying the code.
It is a C# class library that contains a single class called ContextMenuEx. To use the class, add the enclosed project to your solution, replace your normal ContextMenu objects with ContextMenuEx objects. Then in the module that contains the context menu objects, add the event handler PopDown for the desired ContextMenuEx menu objects that you wish to detect the closing of.
Last edited by jovton; Apr 19th, 2004 at 04:20 PM.