开发者

Combobox selection control not coming out

开发者 https://www.devze.com 2022-12-18 18:13 出处:网络
I\'m working with winforms comboboxes. When I select any item in combobox I\'ve raised an event. But control can not come outside. When I scroll the mouse the selected event changing every time.

I'm working with winforms comboboxes. When I select any item in combobox I've raised an event. But control can not come outside. When I scroll the mouse the selected event changing every time.

how开发者_运维知识库 to prevent this?


The mouse scrolling actually does change the item selection in the combobox and hence your event is fired, you don't want your event handling code on mouse scroll?


If the problem is that you cannot use the mouse wheel to open drop-down portion of the combobox, then you can use ComboBox.DroppedDown property.

0

精彩评论

暂无评论...
验证码 换一张
取 消