473,734 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

shift and control key status

How do I detect if the user is holding down a SHIFT or CONTROL key whilst
moving the mouse.

Sorry for the trivial question but I'm just getting started with this

Phil
Nov 16 '05 #1
2 2485
Use Control.Modifie rKeys to determine if shift ,ctrl and alt keys are
pressed.

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"phil cunningham" <ph**@oakleafso ftwareNOSPAM.co .uk> wrote in message
news:eM******** ******@tk2msftn gp13.phx.gbl...
How do I detect if the user is holding down a SHIFT or CONTROL key whilst
moving the mouse.

Sorry for the trivial question but I'm just getting started with this

Phil

Nov 16 '05 #2
thanks for the info.

All the best
Phil

"Sijin Joseph" <si*********@ho tmail.com> wrote in message
news:er******** ********@TK2MSF TNGP11.phx.gbl. ..
Use Control.Modifie rKeys to determine if shift ,ctrl and alt keys are
pressed.

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph
"phil cunningham" <ph**@oakleafso ftwareNOSPAM.co .uk> wrote in message
news:eM******** ******@tk2msftn gp13.phx.gbl...
How do I detect if the user is holding down a SHIFT or CONTROL key whilst moving the mouse.

Sorry for the trivial question but I'm just getting started with this

Phil


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2363
by: Alex Stevens | last post by:
Hi All, I'm writing a launcher program which checks for updates and copies them down to the client. However, I would like the user to be able to modify the settings for the launcher. As this runs automatically, I would like it to be configurable by the user holding down the shift key when double-clicking my exe, to bypass the usual update routine and start the config form. Access does something similar, by holding down the shift to...
7
15501
by: Paul Cooper | last post by:
Dear All, I am working on a piece of Javascript code that needs to detect a mouse-click, shift-click and control-click. The code is not my own - it is a part of a much larger suite of routines. The code as it stands does not work in Firefox, and I suspect that the task of feature detection (which currently depends on browser detection) can be carried out better. The result should be that opcode is set to 0,1 or 2 dor click,...
4
15382
by: Vazz | last post by:
I am trying to capture the key combination "Control + Shift + Enter" in a KeyDown event. I am able capture "Control + Enter" using (e.KeyCode == Keys.Enter && e.Modifiers == Keys.Control). How do I check if there are two Modifiers?
4
2458
by: Moe Sizlak | last post by:
Hi There, I am trying to return the value of a listbox control that is included as a user control, I can return the name of the control but I can't access the integer value of the selected item, what do I need to do in order to return the "option value" of the control? Moe !--- returned value of the control
10
27871
by: Tim Frawley | last post by:
I am attempting to detect a Shift+Tab in the KeyPress event for back navigation on a control that doesn't support this method. Does anyone have any ideas how to compare e.KeyChar to a ShiftTab? Tim
5
8945
by: Boni | last post by:
Dear all, How do I get information if Shift is pressed in a mouse wheel handler. Thanks, Boni Sub MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) 'mouse whill handler If SHIFT is pressed and e.delta..... End Sub
3
14136
by: ngreplies | last post by:
I have a need for an extra facility to be available when the user presses the SHIFT key whilst clicking on either a Button Control or a textbox. I am using both VB6 and VB.NET2002. Could anyone please advise on the best way of managing this. Thanks in advance Terry
7
7197
by: Csaba Gabor | last post by:
I'd like to detect the shift key when a button is "clicked" in Firefox/Mozilla. If the button is clicked with the mouse, no problem. However, if the onclick event is keyboard originated, then my method is not working. Same thing for SELECT elements. The simple web page below shows the issue. Click with the mouse while holding down the shift key, and the Shift key's status registers. However, use Shift+Alt+o, or either (while the...
4
4876
by: Johnny J. | last post by:
How do you check if the Control, Shift or Alt key is pressed at any given time (not necessarily in a keyevent)? Cheers, Johnny J.
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.