mouse middle button-scrolling problem

  • Thread starter Thread starter roger
  • Start date Start date
R

roger

Hello friends;

I have a form where I do not want the user to be able to
scroll up and down on the records using the mouse middle
button. How can I take care of that?

Alternatively, if I install a 2 button mouse on the PC
then this problem will go away...correct....

but nonetheless I want to know how to stop the scroll with
the mbutton anyways.
 
How can I take this a step further to implement the following?

When someone scrolls the mouse, I'd like to scroll the memo field I have. Is
this possible? I know I can probably do it via SendKeys, but mvps.org says
not to use Sendkeys.
 
When someone scrolls the mouse, I'd like to scroll the memo field I
have. Is this possible?

It's probably best to adhere to UI design guidelines and require the user
to click in the control first. Scrolling controls on the screen at random
based on what you *think* the user is trying to do when developing the app
often results in 'irritating' behavior that the user won't know how to work
around.
I know I can probably do it via SendKeys, but
mvps.org says not to use Sendkeys.

Yes, it's a bad idea as SendKeys works on whatever object has the focus at
the time SendKeys was executed. You have no way of making sure that the
right object gets the SendKeys.

-- Dev
 
Back
Top