How to set up a TextBox to get only certain values. e.g. DateTime input box with defined format settings.
How to set up a TextBox to get only certain values. e.g. DateTime input
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://www.codeproject.com/KB/WPF/wpfvalidation.aspx
And a function. This one just checks the string has content. Yours will be more complex depending on the exact format you want to enforce: