Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Right and Left Mouse Clicks

Posted on 1998-11-23
1
Medium Priority
?
158 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 400 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

885 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