如何为文本框设置时间格式 [英] how to set time formatt for a textbox

查看:116
本文介绍了如何为文本框设置时间格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将时间(hh:mm:ss)设置为文本框

setting a time(hh:mm:ss) to a textbox

推荐答案

如果您正在谈论ASP.Net应用程序,那么您可以轻松地通过AJAX MaskedEditExtender



查看现场演示

MaskedEdit演示 [ ^ ]

这里有一篇你可能想参考的详细文章

ASP.NET C#中的AJAX控件工具包屏蔽编辑教程示例 [ ^ ]



如果您正在搜索Windows窗体应用程序的解决方案,以下文章可能有帮助

C#中的MaskedTextBox [ ^ ]



希望,它有帮助:)
If you are talking about ASP.Net application, then you can do this easily through AJAX MaskedEditExtender

Check the live demo here
MaskedEdit Demonstration[^]
and here is a detailed article you may want to refer
AJAX Control ToolKit Masked Edit Tutorial Example in ASP.NET C#[^]

If you are searching the solution for Windows Form application, following article may help
MaskedTextBox in C#[^]

Hope, it helps :)






参考:

1) C#:一个更好的日期屏蔽文本框

2)如何编写唯一的时间格式HH:MM:SS在TextBox中


这篇关于如何为文本框设置时间格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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