|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
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! 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! 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! > > >
Do nothing but wait loop..
User permission problems. sqlconnection Ho do I create a program that can get recognized as a printer driver and installed with the add prin On the fly formatting of textbox contents How can I embedd graphics in Outlook Email without using MAPI Register DLL for COM interop and use it in ASP Strip chars from a string Reference count? VB script to VB.Net back to VB script CALL a dialog form just after the main form is loaded. |
|||||||||||||||||||||||