FilteredTextBox

This tutorial shows how to use the FilteredTextBox control, which lets you specify which characters are allowed in user input.