za TextBox.KeyPress event dodaj handler sledece sadrzine:
Code:
if (!char.IsDigit(e.KeyChar) && e.KeyChar != 8)
{
e.Handled = true;
}
If it's a girl then they're gonna call it Sigourney, after an actress. If it's a boy, then they're gonna call it Rodney, after Dave!