Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hello
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
TextBox.databinding(0).nullvalue=string.empty
 
now i want to know what do i set for Masked Text box used to read and write date values.
 
sandeep
Posted 10-Jan-13 9:21am
Comments
Sergey Alexandrovich Kryukov at 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.
—SA

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



Advertise | Privacy | Mobile
Web03 | 2.8.150305.1 | 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