Masked Edit Control: Creating Input Masks

Question:
Hi, I would like to know how to make input masks for a database program. I can do this in Access very easily, but unfortunately, I have to write this program in VB and I can’t find out how to do this anywhere! Do I have to write ALL the code? Any help is much appreciated and I would like you to email the response. Thanks again!

Answer:
VB 3.0 and 4.0 include a masked edit box (MSMASKED.VBX for v3.0, MSMASK16.OCX and MSMASK32.OCX for v4.0) that is documented in the Professional Features book (and the Enterprise edition docs in the case of VB4.0). It works pretty well for forcing input in a particular format (like a phone number, etc.).There also exists a version called MASKEDIT.OCX for use in active web pages. It’s available from the Microsoft website. I’m sure that third-party vendors also have this sort of thing available.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: