Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
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.
—SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900