Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MASK EDIT

Status
Not open for further replies.

AZSEEK

Programmer
Feb 13, 2003
84
US
does anyone know how to do a mask edit on vb.net text box control (e.g. ssn ###-##-####)
 
What you're after is possible but will involve some work, identiying position in the textbox.

Have you thought of using the Masked Edit control. Looks just the same as a textbox, but has the MASK property you need. You can add this control easily to one of your toolbars. Rt Click the toolbar, Add-Remove Items. In the List of COM components, find the Microsoft Masked Edit control and tick it. Ok the changes and its now on your toolbar.

Then use as follows
Code:
with me.xMask
    'This box will hold date information.
    .Mask = "##/##/##"
    .Text = "12/01/99"
endwith




Sweep
...if it works dont mess with it
 
I tried to use the COM component Microsoft Masked Edit control and when I bound it to a field in my dataset no data showed in ANY fields on my form. I still had a record count by my navigator. What am I doing wrong. Be gentle, I'm a newbie.

ProDev, MS Access Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top