The MaskedTextBox control lets you display and edit values based on a mask.