Home All Groups Group Topic Archive Search About

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

Author
5 May 2006 4:11 AM
MH-2004
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!

Author
5 May 2006 5:00 AM
Cor Ligthert [MVP]
MH,

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

Cor

Show quoteHide quote
"MH-2004" <MH2***@discussions.microsoft.com> schreef in bericht
news:6C3071D8-ECE0-402D-A6AA-BA66FBF008A8@microsoft.com...
> 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!
Author
5 May 2006 7:23 PM
MH-2004
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

Show quoteHide quote
"Cor Ligthert [MVP]" wrote:

> MH,
>
> Normal an event is binded to one control. Did you maybe do some code to get
> this general doing?
>
> Cor
>
> "MH-2004" <MH2***@discussions.microsoft.com> schreef in bericht
> news:6C3071D8-ECE0-402D-A6AA-BA66FBF008A8@microsoft.com...
> > 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!
>
>
>