Home > Net >  C # WinFrom
C # WinFrom

Time:09-21

In a WinForm window there is a panel control, open the AutoScroll, when a scroll bar shows, can use the mouse wheel to scroll the content (even if they don't add the mouse wheel to the panel can be), but every time the mouse wheel rolling rolling distance is 120, how to modify the mouse wheel rolling distance, I want to change it a little bit small.
I tried to add the mouse wheel news, I set rolling delta distance, but found that it will in my set up based on the rolling distance of change 120.

Which master teach me the zha get?

CodePudding user response:

https://www.cnblogs.com/qiaoke/p/6120102.html

CodePudding user response:

Should not modify the value of the delta, this value defaults to 120
But you can use this example to modify

https://www.cnblogs.com/eye-like/p/4797003.html

CodePudding user response:

refer to the second floor jimmy212 response:
should not modify the value of the delta, this value defaults to 120
But you can use this example to modify

https://www.cnblogs.com/eye-like/p/4797003.html


I tried this, my problem is not the mouse wheel can't scroll, but each time the mouse wheel rolling distance is 120, you can try the Win10 system, a panel of WinForm automatically scroll bar which is able to respond to the mouse wheel, don't need to add Mouse_Wheel message function, even if I manually add Mouse_Wheel message function, inside manual rolling distance, program will be based on the distance I set again change 120, is there any way to make it perform I manually create Mouse_Wheel function after the mouse wheel is no longer the background response message?
  •  Tags:  
  • C#
  • Related