469,646 Members | 1,558 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

Completely Disable Right Mouse Button

I have created a drag and drop scheduler within Microsoft access. One
of our bug testers was doing some testing and noticed that the drag
and drop gets messed up if they press both the left and right mouse
buttons simultaneously. The code to handle the drag and drop is
already complicated enough without taking this scenario into account.
Is it possible to completely disable the right mouse button when this
particular form is loaded? Any ideas or suggestions are appreciated.
Thanks.

Vincent

Jun 20 '07 #1
4 4183
Vincent wrote:
I have created a drag and drop scheduler within Microsoft access. One
of our bug testers was doing some testing and noticed that the drag
and drop gets messed up if they press both the left and right mouse
buttons simultaneously. The code to handle the drag and drop is
already complicated enough without taking this scenario into account.
Is it possible to completely disable the right mouse button when this
particular form is loaded? Any ideas or suggestions are appreciated.
Thanks.

Vincent
Geez, it probably breaks if they slam a bunch of keys on the keyboard at the
same time too. At some point the user is responsible for not doing *really
stupid* stuff.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jun 20 '07 #2
I agree. It just bothers me--if you let a user do something, they'll
do it.

Vincent

On Jun 20, 1:34 pm, "Rick Brandt" <rickbran...@hotmail.comwrote:
Vincent wrote:
I have created a drag and drop scheduler within Microsoft access. One
of our bug testers was doing some testing and noticed that the drag
and drop gets messed up if they press both the left and right mouse
buttons simultaneously. The code to handle the drag and drop is
already complicated enough without taking this scenario into account.
Is it possible to completely disable the right mouse button when this
particular form is loaded? Any ideas or suggestions are appreciated.
Thanks.
Vincent

Geez, it probably breaks if they slam a bunch of keys on the keyboard at the
same time too. At some point the user is responsible for not doing *really
stupid* stuff.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

Jun 20 '07 #3
On Wed, 20 Jun 2007 09:10:59 -0700, Vincent <an**********@verizon.netwrote:
>I have created a drag and drop scheduler within Microsoft access. One
of our bug testers was doing some testing and noticed that the drag
and drop gets messed up if they press both the left and right mouse
buttons simultaneously. The code to handle the drag and drop is
already complicated enough without taking this scenario into account.
Is it possible to completely disable the right mouse button when this
particular form is loaded? Any ideas or suggestions are appreciated.
Thanks.
Nobody said it was easy ... and it's not too terribly hard to imagine someone pressing both buttons at the same time,
although somewhat unlikely.

Disabling standard features because you don't want to write the code to handle them is not the best method to take, and
while this scenario is unlikely, it'll happen (and if you haven't taken this scenario into consideration, then there's
almost certainly many others you need to deal with). When it does, your users will take you to task for writing junk
code and for providing them an application that doesn't function correctly, or function in a non-standard way.
>
Vincent
Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Jun 20 '07 #4
On Wed, 20 Jun 2007 09:10:59 -0700, Vincent <an**********@verizon.netwrote:
>I have created a drag and drop scheduler within Microsoft access. One
of our bug testers was doing some testing and noticed that the drag
and drop gets messed up if they press both the left and right mouse
buttons simultaneously. The code to handle the drag and drop is
already complicated enough without taking this scenario into account.
Is it possible to completely disable the right mouse button when this
particular form is loaded? Any ideas or suggestions are appreciated.
Thanks.

Vincent
I would normally use the MouseDown event to determine which button was pressed.

Sub MyControl_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)

If Button = acLeftButton Then
Do Stuff .....
End If

End Sub

Wayne Gillespie
Gosford NSW Australia
Jun 21 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by nntp | last post: by
5 posts views Thread by H.Bierhuizen | last post: by
4 posts views Thread by Seen | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.