I have defined a shortcut to OPEN a file - CTRL+O
I another context I use to see if the CTRL-key is pressed and I do so by this code:
private void Form1_KeyDown(object sender, KeyEventArgs e)
commonThings.ctrlActivated = e.Control;
commonThings.altActivated = e.Alt;
private void Form1_KeyUp(object sender, KeyEventArgs e)
commonThings.ctrlActivated = false;
commonThings.altActivated = false;
The ctrlActivated is never set to false when I use the CTRL+O to open a file - and ONLY in this situation !!!!!
If I click the menues to open the file and try the other functionallity where I use ctrlActivated, then it work fine !
Best regards KSor, Denmark
View Complete Post