This is a migrated thread and some comments may be shown as answers.

How to get right mouse down event?

0 Answers 98 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Warren
Top achievements
Rank 1
Warren asked on 15 Sep 2015, 09:02 PM

Hello,

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.

Thanks,

Warren

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

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Warren
Top achievements
Rank 1
Share this question
or