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

B

bob

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.
 
B

Brian Tkatch

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top