how to prevent the controls in a form and form itself to scroll?

G

Guest

Hi All,

I have a MDI form application. In a child form I placed a bunch of
NumericUpDown controls. The problem happens when I use the mouse scroll
button, the value in the NumericUpdown has changed and the form also scrolls
out of control. How do I make the detatch those two types of controls so that
only one gets the mouse scrolling event. I tried to override the OnMouseWheel
event for the NumericUpDown, it seems that it did not get fired. I also try
to let the NumericUpDown to loose control,-- no success!

Thanks much!
 
C

Cor Ligthert [MVP]

MH,

Normal an event is binded to one control. Did you maybe do some code to get
this general doing?

Cor
 
G

Guest

Thanks! But No, the NumericUpDown is just a standard control I picked up from
the toolbox under windows form and placed it in a form. when the program
runs, if you click mouse inside the NumericUpDown, you can change value use
either arrow key, clicking up/down button, or just the scroll the mouse. The
trouble is I can not make the NumericUpDown loose focus and let the form
capture the mouse scroll.


Mei
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top