473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1309
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Richard | last post by:
All, In my Windows based .NET C# application I tried to change a form's background color to non-gray. The form backround color change had the desired ripple effect for most controls on the...
4
by: Alessandro Rossi | last post by:
My problem is to scroll all the controls in a form. The problem is: If there are controls that contains still others controls, that contains still others controls ecc... how can i write an...
4
by: John Tyce | last post by:
The problem that I am now having, involves refreshing controls. I have allot of text boxes, several combo boxes and grids. These controls are showing live data from an Oracle database. I have dates...
6
by: Tom | last post by:
I need to make up a 'grid' of controls at run time. The controls (of which I wrote) I will instantiate, then I need to arrange these in a row/column layout. For example, let's say I instantiate 20...
2
by: George | last post by:
Dear colleagues, I refer to your help with specific graphic problem. It is necessary to create a viewfinder in graphic application. It seems that the algorithm is simple: just draw lines in...
20
by: Charles Law | last post by:
This is actually a follow on from yesterday's post about masking mouse clicks in a user control. The solution I have implemented - from Herfried - places a transparent window over the entire...
0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
5
by: Christopher Kurtis Koeber | last post by:
Dear All, This may sound like an elementary question but how do you implement scrollbars for the Picturebox control. Do I have to create my own code to do this or is there some property that I can...
8
by: dominique | last post by:
Hi, Is it possible (in vb.net with WinForms) to loop throw controls inside a container (form or panel) sorting the controls on a property (.tabindex for example) ? My problem : on several...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.