I need to convert Keys.Enter
to a char.
This does not work in compact framework: http://stackoverflow.com/questions/2518749/convert-sequence-of-system-windows-forms-keys-to-a-char (KeyInterop.VirtualKeyFromKey)
Any one have any other ideas?
Further clarification: I like using enumerations more than magic numbers/chars. Rather than make my own enumeration that says MyKeys.Enter (that equals '\r\n') I would like to just use what MS has made.
Keys.Enter is just an example.
I am planning to do this to compare the the KeyPressEventArgs.KeyChar. That is why I am trying to compare to a char.