Winform filter text in a textbox
Posted on 2007-12-03
I want Skip . , : , ; and Numbers when a key on a textbox. Also Is it poosible to change small letters to Caps as I key.I did the below to skip numbers but other characters I am not able to skip.
private void txtInitials_KeyPress(object sender, KeyPressEventArgs e)
if (!char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar))
e.Handled = true;