|
-
Nov 1st, 2009, 02:13 PM
#1
Thread Starter
Addicted Member
Masked Text Box - Date Mask 00/00/0000
Hi All,
I suppose most of us know that there is a bug in VS2008 Masked Textbox that Microsoft apparently can not or will not fix (at least I have not found where they have solved it except patch code in C#) when the MTB is bound.
Entering a date such as 02/15/1964 automatically parses the leading zero giving a date result of something like 21/01/964 after lost focus. I have tested it unbound and it works fine.
Anyone came up with a solution? I have used date validate and Custom Mask.
What I thought may have been a work around it is in keyup event that if position 1 is < 9 then insert a zero, but it goes right back to the result. If I do a debug.print or message box though it shows the zero.
-
Nov 1st, 2009, 03:40 PM
#2
Member
Re: Masked Text Box - Date Mask 00/00/0000
In my mask text boxes works fine..Can you explain better ?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|