.NET Is it possible to have a contextmenu on an item of a combobox?

后端 未结 6 1641
迷失自我
迷失自我 2021-01-20 04:42

In my application I have dropdown list with several items. I\'d like to show a context menu when the user clicks the right mouse button on a dropdown item. Is this possible?

6条回答
  •  难免孤独
    2021-01-20 05:08

    Not possible easily. No hover or right-click event messages are being sent when the combobox is expanded.

    You can see this is the case when using Spy++.

    I think the easiest would be to change to a listbox if your scenario allows you to do that.

提交回复
热议问题