ContextMenustrip Double Click Handler

Posted on 2014-08-25
Last Modified: 2014-08-26
I have a dynamically created ContextMenuStrip  that I am creating click handlers for        

 AddHandler reportsContextMenuStrip.ItemClicked, AddressOf cMenu_Click  << Works Fine

I am trying to create either a double click or preferable  a right mouse click (opposite Mouse Click)
 AddHandler reportsContextMenuStrip.MouseDoubleClick, AddressOf cMenuDouble_Click  <<-- Does not seem to fire

Please any help is appreciated
Question by:charlesbaldo
    LVL 40

    Accepted Solution

    You cannot react to most events on a ContextMenuStrip, because the ContextMenuStrip itself is never visible.

    What is visible to the user are the ToolStripMenuItem controls that the ContextMenuStrip contains. And the ToolStripMenuItem does not have a MouseDoubleClick, it has a only a DoubleClick.

    Author Closing Comment


    Thank you what I ended up doing was the mouse event with right and left then save the results to a global variable and work it form there

    WPF is the best answer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now