برای دریافت فقط حروف
private void myTextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
char chrTest = Convert.ToChar(e.KeyChar.ToString().ToLower());
if (chrTest < 97 || chrTest > 122)
{
e.Handled = true;
}
}
برای دریافت فقط حروف
private void myTextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
char chrTest = Convert.ToChar(e.KeyChar.ToString().ToLower());
if (chrTest < 97 || chrTest > 122)
{
e.Handled = true;
}
}