I have a textfield for inputting time. I want to limit the user to enter the international time format only 00:00-23:59...any functions in C# can do it or how i can do it?
Thank you
Printable View
I have a textfield for inputting time. I want to limit the user to enter the international time format only 00:00-23:59...any functions in C# can do it or how i can do it?
Thank you
You will find some articles about Regular Expressions :
http://www.c-sharpcorner.com/3/RegExpPSD.asp
http://www.regular-expressions.info/dotnet.html
In C# 2005 (.net 2.0) there is a new control Masked TextBox that supports a declarative syntax for accepting or rejecting user input.
Article
i still cannot figure out how to write the limitation after readling the given pages... can you suggest me some codes for hints?
Thank you