masked textbox , use hour format with control of max 24(hours):60(minutes)
I use a masked textbox, and I would control the input, the problem is, I use 1 textbox and the control should on the first 2 digits with a max开发者_如何学运维imum of 24 and the last 2 digits with a maximum of 60. Is there a possibility to program this?
Use the _Validating
event of the masked textbox. In that example on MSDN, the extra spaces and ':'
were stripped out, and the first two digits were validated against 0-23 and the second two digits were validated against 0-59.
精彩评论