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?
 
Back
Top