473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 4444
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lijun Yang | last post by:
Hey, I am able to disable the right mouse button on images for netscape and IE but it won't work for Opera. Here is the code: // start of the code var clickmessage="Sorry, you don't have...
6
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled...
5
by: H.Bierhuizen | last post by:
Hello, Does anyone know how to disable the mouse on a specific form? So users are only allowed to use keyboard controls. Thanks already for answering. Hans ...
4
by: Seen | last post by:
This has probably been covered before but I can't seem to find it. I want to disable the user from using the right mouse button that brings up a windown menu of options. How's it done?????
14
by: Amar | last post by:
Hi All, I am a newbie to PHP and have the task to create a page using PHP where in that page I need to disable all key operation as well as mouse operation even also the menu operation that...
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
3
by: nagmvs | last post by:
Hai guys, I want the the code to disable Left Mouse button with out Alert message. Below code i am having <!-- This code is for disableing left click--> <script language="javascript">...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.