e.Handled = False 否则 e.Handled = True 结束如果 谢谢和问候, Prashant Hirapara Hi, Try paste this code in the KeyPress event of the text box If Asc(e.KeyChar) >= 48 And Asc(e.KeyChar) <= 57 Then e.Handled = False ElseIf Asc(e.KeyChar) = 46 Then e.Handled = False Else e.Handled = True End If Thanks and Regards, Prashant Hirapara 这篇关于使用VB在asp.net的文本框中仅接受数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-24 20:32