I have a form that the user can double click on with the mouse and it will do something. Now I want to be able to know if the user is also holding the Ctrl key down as the user double click on the form.
How can I tell if the user is holding the Ctrl key down?
Using .NET 4 you can use something as simple as:
If you’re not using .NET 4, then the availability of
Enum.HasFlagis revoked, but to achieve the same result in previous versions: