Description: 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.
To Search:
File list (Check if you may need any files):
FilterTextBoxNumStyle\文本框KeyAscii数字格式过滤.rar
FilterTextBoxNumStyle