Solved

Right and Left Mouse Clicks

Posted on 1998-11-23
1
153 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

777 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