It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Display only last 4 digits of a value while in masked textbx

Moderator: dafunkymunky

Display only last 4 digits of a value while in masked textbx

Postby wadds on Fri Jan 04, 2008 11:45 am

I have two radio buttons SSN and TAxID and a masked text box.
When the SSN is checked,
then the masked text box will show ___-__-____
and when tax id is selected the masked text box will show __-_______
because i have set the mask property accordingly.

So when i enter value for SSN it gets entered as 333-33-3333 and for taxid as 11-1111111.
Now i want to mask the textbox to display only the last 4 values of the masked textbox ie XXX-XX-3333 for SSN and XX-XXX1111 for taxid.

I can do it using a normal text box, but the hifens in between should be formatted manually which is not acceptable by the client.

Any suggestions or sample code in this regard is appreciated.
wadds
 
Posts: 0
Joined: Fri Jan 04, 2008 11:31 am

Who is online

Users browsing this forum: No registered users and 4 guests