G
Guest
I have a window vertically splitted in two parts : on the left a panel containing controls (including a combobox)
and on the right a panel with scrollbars to display an image.
I wish that MouseWheel events act on the scrollbars to position the image
but MouseWheel events are send to the combobox.
I add a MouseEventHandler to the combobox,
comboBox1.MouseWheel += new MouseEventHandler(comboBox1_MouseWheel)
and add the code to modify the AutoScrollPosition of the right panel in comboBox1_MouseWheel
The position of scrollbar is well changed, but the event is still catched by the combobox, and the liste in the combobox is still scrolled.
Can we cancel the event for the combobox
and on the right a panel with scrollbars to display an image.
I wish that MouseWheel events act on the scrollbars to position the image
but MouseWheel events are send to the combobox.
I add a MouseEventHandler to the combobox,
comboBox1.MouseWheel += new MouseEventHandler(comboBox1_MouseWheel)
and add the code to modify the AutoScrollPosition of the right panel in comboBox1_MouseWheel
The position of scrollbar is well changed, but the event is still catched by the combobox, and the liste in the combobox is still scrolled.
Can we cancel the event for the combobox