Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting a text control at input?
Message
 
To
01/10/1999 13:58:55
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00271551
Message ID:
00271679
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform