I have code for validating text_box which only accept alphabetic/lowercase characters. I have managed to add the code in the below code.
This is my code:
if (char.IsLetter(e.KeyChar) || e.KeyChar == 8)
{
e.handled = false;
}
else
{
e.handled = true;
}