I have a registration application which has the \"KeyChar\" event inside it, and it works great ! but when i give the same lines of code in this application it gives me
Use the character. Single quotes ' define a character, while double quotes " define a string:
'
character
"
string
if (e.KeyChar == 'L')