You can check the modifiers of the KeyEventArgs like so:
private void listView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Up && e.Modifiers == Keys.Control)
{
//do stuff
}
}
MSDN reference
Related Contents:
- Up, Down, Left and Right arrow keys do not trigger KeyDown event
- DataGridView keydown event not working in C#
- Removing the delay after KeyDown event?
- The calling thread cannot access this object because a different thread owns it
- What is the yield keyword used for in C#?
- Could not establish trust relationship for SSL/TLS secure channel — SOAP
- Use Linq to Xml with Xml namespaces
- Rotate GameObject over time
- How can I deserialize a child object with dynamic (numeric) key names?
- TypeLoadException says ‘no implementation’, but it is implemented
- How do I create dynamic properties in C#?
- Merging two images in C#/.NET
- Capture the Screen into a Bitmap
- Round a double to x significant figures
- Converting BitmapImage to Bitmap and vice versa
- How to get values of selected items in CheckBoxList with foreach in ASP.NET C#?
- How do I get the currently-logged username from a Windows service in .NET?
- C# Selenium ‘ExpectedConditions is obsolete’
- Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) – possible?
- Custom numeric format string to always display the sign
- Getting full URL of action in ASP.NET MVC [duplicate]
- GetMethod for generic method [duplicate]
- Good AES Initialization Vector practice
- How to read file using NPOI
- GPS Socket communication (CONCOX)
- Python: Inflate and Deflate implementations
- Embedding an external executable inside a C# program
- Do C# Timers elapse on a separate thread?
- Is Task.Run considered bad practice in an ASP .NET MVC Web Application?
- Unable to connect to ASP.Net Development Server issue
- Simple way to copy or clone a DataRow?
- Simulate steady CPU load and spikes
- How to get some values from a JSON string in C#?
- How to get current user who’s accessing an ASP.NET application?
- The request was aborted: Could not create SSL/TLS secure channel
- Unhandled exceptions in BackgroundWorker
- Wpf animate background color
- Add parameter to Button click event
- C# Pass Lambda Expression as Method Parameter
- c# – How to iterate through classes fields and set properties
- UploadFile with POST values by WebClient
- How do I display progress during a busy loop?
- Random date in C#
- C# Threading/Async: Running a task in the background while UI is interactable
- Properly locking a List in MultiThreaded Scenarios?
- Implementing IDisposable on a subclass when the parent also implements IDisposable
- Warm-up when calling methods in C#
- What URI protocols exist on Windows Phone 8?
- Progress Bar not available for zipfile? How to give feedback when program seems to hang
- Most Useful Attributes [closed]