How to get right mouse down event?

1 posts, 0 answers
  1. Warren
    Warren avatar
    61 posts
    Member since:
    Aug 2013

    Posted 15 Sep 2015 Link to this post


    I want to capture the mouse down event for the right button. I am using the code below but it shows a context menu. Is there a way to disable the menu and run the code instead for the event? I do not want to replace the menu, just do away with it. And the style can be both dropdown and dropdownlist.



    Private Sub cboHair_MouseDown(sender As Object, e As MouseEventArgs) Handles cboHair.MouseDown
        If e.Button = Windows.Forms.MouseButtons.Right Then
            'Show other form
        End If
    End Sub

Back to Top