Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting a text control at input?
Message
 
À
01/10/1999 13:58:55
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00271551
Message ID:
00271679
Vues:
23
>Using this control works correctly, except that it does not have a text property.
>
>I can not assign it to any value as with the text control. For example:
>
>Me.txtTel.Text=rst.Fields("Tel")
>
>does not work since Text is not a valid property within this control.
>
>How can I achieve the same result with the Mask Edit control?

Use the SelText property instead of the Text property but be aware that you have to place your insertion point at the start.

With MaskEdBox1
.SelStart = 0
.SelText = "1234567890"
End With
É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