Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format a textbox
Message
From
08/02/2001 14:40:39
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00472446
Message ID:
00474133
Views:
23
>>How can I format a textbox in VB6 to accept phone numbers as "(999)999-9999"?
>
>You need to use the Mask Edit. Go to Project->Components and choose "Microsoft Masked Edit Control".

Eric,

Thanks for the answer.

This works except the control doesn't refresh correctly when a field is blank. I have a Phone field that I want formatted as "(999)999-9999".

The Masked controls does this great, however, if a record does not have any phone number, the previous phone number is carried over.

I'm using the ADODC to navigate through each record.

Thanks,

Jerryt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform