[英]text box - setting the precision
i want to restrict the numbers to be entered on the text box to five precision 我想将要在文本框中输入的数字限制为五位精度
eg: 1234.52342 -1234.52342 例如:1234.52342 -1234.52342
how i can restrict while entering the numbers on the text box 在文本框上输入数字时如何限制
Use a MaskedTextBox control. 使用MaskedTextBox控件。
http://msdn.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx http://msdn.microsoft.com/zh-CN/library/system.windows.forms.maskedtextbox.aspx
您还可以使用customvalidator控件对控件进行限制。.Telerik还具有一个数字文本框控件,您可以查看http://demos.telerik.com/aspnet-ajax/input/examples/radnumerictextbox/firstlook/defaultcs.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.