Control key plus mouse wheel

2019-06-16 06:32发布

问题:

What's the better way to handle the ctrl + mouse wheel in C#? I've figured out how to handle the MouseWheel event but how to know that the ctrl key is being pressed too?

Thanks in advance.

回答1:

Use the static property like:

System.Windows.Forms.Control.ModifierKeys