Basically create a new user control, add a textbox to it then place the code within the class. I called my textbox 'NumericTextBox' but you can call it what you like, just modify the names in the code where applicable.