Click to See Complete Forum and Search --> : constraint the time format in the textfield


dummyagain
October 16th, 2006, 09:41 AM
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

creatorul
October 16th, 2006, 11:14 AM
You will find some articles about Regular Expressions :
http://www.c-sharpcorner.com/3/RegExpPSD.asp
http://www.regular-expressions.info/dotnet.html

aniskhan
October 16th, 2006, 01:22 PM
In C# 2005 (.net 2.0) there is a new control Masked TextBox (http://msdn2.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx) that supports a declarative syntax for accepting or rejecting user input.

Article (http://www.levelextreme.net/wconnect/wc.dll?10,7,10,57)

dummyagain
October 17th, 2006, 02:26 AM
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