473,394 Members | 1,714 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,394 software developers and data experts.

Processing Ctrl + S etc

Hi,

I'm writing a C# GUI and I'm trying to process the control keys, i.e. CTRL +
S or CTRL + N.
I can process ALT + by using the & key but is there an equilivant for CTRL.

Thanks,
Donal
Nov 16 '05 #1
2 2243
Hi Donal,

In the KeyEventArgs used by KeyDown and KeyUp events there is a Modifiers
property you can use to determine if Ctrl/Alt/Shift is also pressed. You
can also use the Ctrl, Alt and Shift properties directly.

There is a good example on how to use this in the documentation under

KeyEventArgs.Modifiers
--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
Cheers Morten, That worked really well.

Donal
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsmwtcrr2klbvpo@pbn_computer...
Hi Donal,

In the KeyEventArgs used by KeyDown and KeyUp events there is a Modifiers
property you can use to determine if Ctrl/Alt/Shift is also pressed. You
can also use the Ctrl, Alt and Shift properties directly.

There is a good example on how to use this in the documentation under

KeyEventArgs.Modifiers
--
Happy Coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #3

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

Similar topics

8
by: Mike Maxwell | last post by:
<vent> I see there has been traffic over the years on this gripe, so just let me vent my frustration, and add another reason why 'exit' (or possibly exit() or quit() or halt() or some such) should...
3
by: Glen Hong | last post by:
I have set up a hotkey using RegisterHotKey API function for Ctrl-Tab. Firstly, I can rap this when Ctrl-Tab is pressed however if I want to add an addition hotkey how can I distinguish between...
2
by: crjunk | last post by:
I'm trying to write a piece of code that will programatically save a record automatically without me having to add a new ' Row.Item("ADD1") = txtAdd1.Text.Trim.ToUpper ' type command each time I...
7
by: pdr14 | last post by:
If I un-comment any line in this program below the line where I commented " all OK up to this point " This program locks up my computer. Windows task manager will show "Not Responding" for...
2
by: s99999999s2003 | last post by:
hi i have a program that works very similar to tail -f in Unix It will need a Ctrl-C in order to break out of the program. I wish to run this program using python (either thru os.system() or some...
0
by: Dumm Homey | last post by:
Hi all, I've been working on a little app some friends and I need to help us enter a lot of XML data. There are a few places where html code is entered in, and it's silly to keep typing <b>, </b>...
4
by: Gene Jones | last post by:
Hi all, I've been working on a little app some friends and I need to help us enter a lot of XML data. There are a few places where html code is entered in, and it's silly to keep typing <b>, </b>...
3
by: nstefi | last post by:
Hi, I feel I am going nuts trying to figure out something and get into other problems. I have a DB2 UDB Enterprise Edition version 7.1. I recently upgraded to FixPack 14. I try to update a...
0
by: noama | last post by:
Is it possible to somehow get the source code of the url, but after DOM processing and the javascript has run. I'm not talkin on urllib2.urlopen(url).read() since that would give us the same result...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.