For a program I am making, I want to have it so you can only type numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and a decimal point. Also, I would appreciate it if someone could supply me ( if it exists ) with a code to stop the .Net error message. I have it so that if you have nothing in a textbox, a messagebox pops up. Then you click ok and an error message comes up. You know, the details, continue, quit, unhandled exception. I want to just have the message box come up and then you click ok and it just reverts the program to its normal self. As if it was just loaded.

PLEASE answer. I have been searching for about an hour for this stuff and haven't found a thing. I signed up to make this topic so please don't turn me down!