Results 1 to 1 of 1

Thread: New .NET Context Menu with PopDown event

  1. #1

    Thread Starter
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266

    New .NET Context Menu with PopDown event

    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.
    Attached Files Attached Files
    Last edited by jovton; Apr 19th, 2004 at 04:20 PM.
    jovton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width