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
}
}
More Related Contents:
- Up, Down, Left and Right arrow keys do not trigger KeyDown event
- Removing the delay after KeyDown event?
- How do I capture Keys.F1 regardless of the focused control on a form?
- How to use multiple modifier keys in C#
- DataGridView keydown event not working in C#
- C# trying to capture the KeyDown event on a form
- Is Using .NET 4.0 Tuples in my C# Code a Poor Design Decision?
- Easiest way to change font and font size
- How to handle WCF exceptions (consolidated list with code)
- Mapping columns in a DataTable to a SQL table with SqlBulkCopy
- How can I convert a DataTable into a Dynamic object?
- Read a Registry Key
- The field must be a date – DatePicker validation fails in Chrome – mvc
- How to rewrite complicated lines of C++ code (nested ternary operator)
- Find a control on a page with a master page
- using type returned by Type.GetType() in c#
- How to delete a chosen element in array?
- Null-coalescing operator returning null for properties of dynamic objects
- Dynamically changing Textbox’s AutoComplete List causes AccessViolationException, any advice?
- Text on an Image button in c# asp.net 3.5
- Loading PictureBox Image From Database
- TCP server with multiple Clients
- EF Core takes a lot of time, sometimes, to perform SELECT query
- how are nullable types implemented under the hood in .net?
- WPF Dispatcher {“The calling thread cannot access this object because a different thread owns it.”}
- How to access DbContext in .NET 6 minimal API Program.cs
- What would be an alternate to [TearDown] and [SetUp] in MSTest?
- Can’t find how to use HttpContent
- Reflecting a private field from a base class
- what’s the use of string.Clone()?