Realize that only numbers can be input.
Use the event attribute txtDay_KeyPress to
implement the code
private void txtDay_KeyPress(object sender, KeyPressEventArgs e)
{
if (!(char.IsNumber(e.KeyChar)) && e.KeyChar != (char)8)
{
e.Handled = true;
}
}