Introduction - If you have any usage issues, please Google them yourself
By the KeyPress event KeyAscii parameter and text box together SelStart property can only achieve limited text box enter a number (including negative numbers, decimal point). In fact this method can also be used for other controls, such as the PictureBox control. So I wrote a sub-process, to facilitate calls.