469,903 Members | 2,218 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

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

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!
May 5 '06 #1
2 1210
MH,

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

Cor

"MH-2004" <MH****@discussions.microsoft.com> schreef in bericht
news:6C**********************************@microsof t.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!

May 5 '06 #2
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

"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" <MH****@discussions.microsoft.com> schreef in bericht
news:6C**********************************@microsof t.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!


May 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Richard | last post: by
4 posts views Thread by Alessandro Rossi | last post: by
4 posts views Thread by John Tyce | last post: by
6 posts views Thread by Tom | last post: by
reply views Thread by 23s | last post: by
5 posts views Thread by Christopher Kurtis Koeber | last post: by
8 posts views Thread by dominique | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.