views:

114

answers:

0

I want to capture modifier keys to check whether Control, Shift or Alt is pressed when left mouse is clicked on ToolStripButton in a ToolStripButton.ButtonClicked event handler.

The problem is that when I debug my app with VS 2005, I find no matter which key I pressed or not, the this.Control.ModifierKeys value is always None. But if I run the app(Ctrl+F5) without debugging, then the app can capture the ModifierKeys I want it to do.

Anybody met the same problem?