views:

60

answers:

2

Hi, 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?

A: 

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

Naveed
ya once the event got fired my event should come outside. That means the combobox item is still in the selected mode and enabled true.
Nagu
@Nagu You really need to explain what do you mean by "come outside"
DrDro
A: 

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

Jacob Seleznev