?
Solved

Textbox instant formating/checking

Posted on 2001-07-30
2
Medium Priority
?
201 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
[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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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

718 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