distinct right control key from left one

  • Thread starter Thread starter cody
  • Start date Start date
C

cody

How do I know wheather the user presses the left or the right control key?
If I press the right control key, in my OnKeyDownEventHandler the following
keyCode arrives:

Keys.Control|Keys.ControlKey

which is in binary:
00000000000000100000000000000000 || 00000000000000000000000000010001

but strangely the RControlKey is not present in the value since it has the
following representation:

00000000000000000000000010100011

Any ideas somebody ?
 
OK that is the unmanaged solution but is it possible in .NET? If not, what is Keys.RControlKey good for?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top