Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Textbox instant formating/checking

Posted on 2001-07-30
2
Medium Priority
?
202 Views
Last Modified: 2012-06-21
Ok I know there is a way for text boxes to be set up, when a user is typing in information it will automatically format it.  For example, the user types in 9 numbers, but the text box knows to put in the -'s because it is a social security number. 000-00-0000.  The text box automatically inserts the -'s making it easier on the user. Example 2, user types in 10 numbers, but the textbox automatically formats it as (000) 000-0000.  As for an example of a catch, if users finger accidentally hits the P key instead of 0 when entering into a social, the keystroke will be ignored.  

DataFormat property is not it, or at least i dont believe it is it.  I thought about using the masking command, but it doesnt recognize it.  Is there a library I need to include in the references to use that? Or is there another way, without tons of code to check every possible problem.

Thank you for your time,

David J. Pileggi Jr.
0
Comment
Question by:djpileggi
2 Comments
 
LVL 4

Accepted Solution

by:
nutwiss earned 200 total points
ID: 6334847
no, include the Masked edit box in your project.
0
 
LVL 4

Author Comment

by:djpileggi
ID: 6335599
Well done, there are so many components available.  Sometimes we need more than one brain to keep track of them all.  Well done.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

916 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