Solved

Self-completing date textboxes

Posted on 2007-11-24
4
256 Views
Last Modified: 2013-11-27
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?
0
Comment
Question by:Emanuele_Ciriachi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 20343659
There is a .net control called MaskedTextBox, have you seen it?
http://msdn2.microsoft.com/en-us/library/system.windows.forms.maskedtextbox.aspx
0
 
LVL 1

Author Comment

by:Emanuele_Ciriachi
ID: 20343684
Wow, looke exactly what I need!

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.
0
 
LVL 1

Author Comment

by:Emanuele_Ciriachi
ID: 20343685
Typo: looke --> looks
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20343734
Set the mask to: "00/00/0000" and the PromptChar to: "_"
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ORDER BY 7 37
How display file name that two linked table reside in on a form 4 27
MS Access Error Handling 6 29
"lblTime is not declared" 3 32
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question