mouse middle button-scrolling problem

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

Dan Thomson

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

Dev Ashish

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
 

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