You could add a masked edit textbox (a.k.a. Microsoft Masked
Edit Control x.x) to your project. If you then use a mask of
##:##, the user can only enter the hours and seconds. The :
will always be there and does not have to be typed.Masked Edit 控件提供受限制数据输入和格式化数据输出。此控件提供有关所输入或显示的数据类型的可视提示。这就是该控件作为工具箱中的图标时的外观:文件名
MSMASK32.OCX类名
MaskEdBox
Edit Control x.x) to your project. If you then use a mask of
##:##, the user can only enter the hours and seconds. The :
will always be there and does not have to be typed.Masked Edit 控件提供受限制数据输入和格式化数据输出。此控件提供有关所输入或显示的数据类型的可视提示。这就是该控件作为工具箱中的图标时的外观:文件名
MSMASK32.OCX类名
MaskEdBox
解决方案 »
- 问一个基础问题,我打开一个表单4,使用菜单另存为表单1.保存后发现项目里面提出表单1,而原来的表单4没有了,需要我重新添加。
- 串口问题!!!
- 能不能用ODP.NET操作SQL数据库???
- 关于MDI的问题
- 求救如何在c#中实现从数据库中读数据来生成treeView
- 在客户端如何实现ftp的用户名与密码登录命令
- 如何给wpf中inkcanvas画板画笔画出的线加上动画
- 错误 1 赋值号左边必须是变量、属性或索引器?
- C#如何在窗体中模拟web的Form提交做一个小程序,需要登陆网站,想要模拟网页输入用户和密码进行?
- 请问学些VS.NET的话应该走哪条路?谢谢!
- 请各位大侠推荐几本学C#和visual C#的好书
- 重点! C#编译器问题,性能提高方案
可以参看一下。
但是为什么不直接用时间控件呢