文本框到数字框 [英] text box to number Box
本文介绍了文本框到数字框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将文本框扩展到数字框.我可以从用户那里获取一些现成的输入以获取int输入吗?我可以进行用户控制,但是这种方法不太合适.我想将我的整数Input Cotrol创建为TextBox的子级,因此我可以自由使用它.
期待与您相识.
How to extend text box to number box. Can I have Some ready made input for having int inputs from the user. I can make user controls but that method Is not so proper. I want to create my integer Input Cotrol as a child of TextBox So I can use it freely.
Looking forward to know from you.
推荐答案
^ ]?
尝试以下链接:
C#MaskedEdit控件 [屏蔽的C#文本框控件 [
Try the following link:
C# MaskedEdit Control[^]
Masked C# TextBox Control[^]
Let me know if you need further help.
如果您正在使用Web窗体,则可以使用范围验证控件并检查Integer类型.
If you are using Web Forms you can use the range validation control and check for Integer type.
这篇关于文本框到数字框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文