Cancel Key press event

后端 未结 7 2029
别那么骄傲
别那么骄傲 2021-01-05 07:37

How can I return the key?, mean if I want to allow only integer values in the textbox, how can I don\'t allow user to not enter non-integers, regarding, KeyPress

相关标签:
7条回答
  • 2021-01-05 08:39

    You could use MaskedTextBox and force it to be integer only.

    0 讨论(0)
提交回复
热议问题