Emanuele_Ciriachi
asked on
Self-completing date textboxes
Hello, I am porting an old Access / VBA application to Visual Basic .NET.
Access had a very useful function which I can't in .NET, the format/Input mask.
Basically if I put "dd/mm/yyyy" as format and "99/99/99;0;_" as input mask everything the user will have to do it to type something like "030579" (the control in the meanwhile will automatically show __/__/____ on the textbox) and the system will complete it for him: it will become 03/05/1979.
Is there anything similar in Visual Basic .Net?
Access had a very useful function which I can't in .NET, the format/Input mask.
Basically if I put "dd/mm/yyyy" as format and "99/99/99;0;_" as input mask everything the user will have to do it to type something like "030579" (the control in the meanwhile will automatically show __/__/____ on the textbox) and the system will complete it for him: it will become 03/05/1979.
Is there anything similar in Visual Basic .Net?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Typo: looke --> looks
Set the mask to: "00/00/0000" and the PromptChar to: "_"
ASKER
Any chance that you can show me how to use it for my goal, e.g. to accept dates comprised only of 6 numbers?
I could do all of this by myself, in this case the answer would be good but not excellent.