Tutorial :Where can I find character constants in C#?



Question:

I currently have this code:

if (e.KeyChar == (char)8)  {    }  

What I would like is the C# equivalent of the vbBackspace constant. Is there such a thing in C#?

Example:

if (e.KeyChar == SomeNameSpace.Something.Backspace)  {    }  


Solution:1

if (e.KeyChar == Keys.Back)  {    }  

Look here for more info


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »