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 8: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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 1,398
1 OriginalGriff 508
2 Manas Bhardwaj 383
3 Damith Weerasinghe 330
4 Tadit Dash 310
0 Sergey Alexandrovich Kryukov 9,575
1 OriginalGriff 6,006
2 Peter Leow 4,500
3 Maciej Los 3,540
4 Abhinav S 3,513


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 10 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid