Unable to detect right mouseclick in ComboBox

前端 未结 3 885
清歌不尽
清歌不尽 2021-01-02 23:33

I have a ComboBox that is a simple drop down style. I wanted to open a new window when the user right clicks on an item in the list, but am having trouble getting it to dete

3条回答
  •  没有蜡笔的小新
    2021-01-03 00:07

    I'm afraid that will not be posible unless you do some serious hacking. This article will explain.

    Quoted for you:

    Individual Controls

    The following controls do not conform to the standard mouse click event behavior:

    Button, CheckBox, ComboBox, and RadioButton controls

    • Left click: Click, MouseClick

    • Right click: No click events raised

    • Left double-click: Click, MouseClick; Click, MouseClick

    • Right double-click: No click events raised

提交回复
热议问题