如何修复输入框中允许的输入? [英] How do I fix the input allowed into an input box?

查看:98
本文介绍了如何修复输入框中允许的输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何修改输入框中允许的输入?



基本上我希望用户只能输入数字值(不能有空格或符号) )我也希望输入框出现在这个结构中



02:10:20



我不希望用户能够删除冒号。



我该怎么办?

How do I fix the input allowed into an input box?

Basically I want the user to be only allowed to type in numberical values (no spaces or symbols) also I want the inputbox to appear in this structure

02:10:20

And I don''t want the user to be able to delete the colons.

How do I do this?

推荐答案

我会使用DateTimePicker,而不是TextBox。
I''d use a DateTimePicker, not a TextBox.


这篇关于如何修复输入框中允许的输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆