472,378 Members | 1,503 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,378 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 1270
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.

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.