Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format problem with MaskEdBox
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00291447
Message ID:
00291511
Vues:
19
>Problem 1:
>I am creating a data entry system and one of the fields is the postal code(H2N-5F6)Canada. I am using the MaskEdBox.I want to have the Postal code in Uppercase.How can I format so it is in Uppercase.

Your mask property should be set to ">?9? 9?9".


>Problem 2:I want to use the (Propercase )so that when the user enters text in the LastName field (text box)the first character automatically get changed to uppercase.

Use the StrConv function like this:
Private Sub Text1_Change()
With Text1
.Text = StrConv(Text1.Text, vbProperCase)
.SelStart = Len(.Text)
End With
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform