Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format a textbox
Message
De
08/02/2001 14:40:39
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00472446
Message ID:
00474133
Vues:
27
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform