Home All Groups Group Topic Archive Search About

MouseWheel wants to scroll 4 lines in DataGridView, I want it to do 1.

Author
25 Jun 2006 8:17 AM
bob@datasync.com
The help system says you can "get" (not set) the number of lines the
mouse moves upon one "notch" of the wheel. The value for my system is
4. How do I force it to do only 1. Give me the EASY way, please.

(I'm putting this code into a "mousewheel" event, so I want the number
of lines scrolling to be the same for my computer as well as any
computer using my program. Thus (for example) I don't want to go into
the Control Panel and change the settings for my mouse. I just want to
control how many lines the DataGridView scrolls when ANY mousewheel on
ANY computer moves one notch.)

Thanks.

Author
26 Jun 2006 3:26 PM
Brian Tkatch
b**@datasync.com wrote:
> The help system says you can "get" (not set) the number of lines the
> mouse moves upon one "notch" of the wheel. The value for my system is
> 4. How do I force it to do only 1. Give me the EASY way, please.
>
> (I'm putting this code into a "mousewheel" event, so I want the number
> of lines scrolling to be the same for my computer as well as any
> computer using my program. Thus (for example) I don't want to go into
> the Control Panel and change the settings for my mouse. I just want to
> control how many lines the DataGridView scrolls when ANY mousewheel on
> ANY computer moves one notch.)
>
> Thanks.

Perhaps you should cancel the event and scroll it yourself via
Navigate?

B.