Click here to Skip to main content
11,924,995 members (51,907 online)
Rate this:
Please Sign up or sign in to vote.
I am using VB 2008 & ms access for creating WinForms application, I am also using Typed Dataset & databound controls.

for some of my data field in table i am using Masked text box control to write and read Date values and accordingly i have set the masked to short date format.

Now because the value tobe entered in table through Masked control is Optional, user may or may not write date into it. If i write nothing into it & leave the control after focus then it allows me to leave however, if i try to write some date in it and then decide not to enter any value, then the control doesnt allow me to leave the control until i write any valid date value.

same thing happens with text box control used to read and write numeric values, for text boxes i found the solution by using following code

now i want to know what do i set for Masked Text box used to read and write date values.

Posted 10-Jan-13 9:21am
Sergey Alexandrovich Kryukov 10-Jan-13 14:38pm
WinForms? Tag it! I almost marked it as "not clear". You are the one who is interested in proper tags the most.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151125.3 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100