Solved

Right and Left Mouse Clicks

Posted on 1998-11-23
1
154 Views
Last Modified: 2010-05-03
Does anybody know how to detect when both Right and Left mouse are clicked together. I want a CAD program to recognise that this has happened
0
Comment
Question by:entretec
1 Comment
 
LVL 5

Accepted Solution

by:
scrapdog earned 200 total points
ID: 1446458
Use the MouseDown event rather than the Click event.

A parameter called "Button" is passed to MouseDown.

If Button is 1, the left button was pressed.
If Button is 2, the right button was pressed.
If Button is 4, both buttons were pressed.

Read this page for more info:
http://www.developer.com/reference/library/078970921x/index28.htm
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question