Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MaskEdBox
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Divers
Thread ID:
00293070
Message ID:
00293148
Vues:
32
See inlines...

>Problem 1: Can you please tell me if it's possible to do this:
>Example: (MaskEdBox1.Locked = True),I want to lock the control so that when the user is in view mode, he/she will not be able to edit the data unintentionally.I there is another way please specify.

You can use the .Enabled property of you can handle the KeyPress and/or the Change events.

>Problem 2: In the properties (mask ) of the MaskEdBox, I put (ex.,?9? 9?9 ) for postal code in Canada and when I run the program and view the records ,it doesn't show any postal codes.

Populate manually your controls using this code:
Private Sub Command1_Click()
With MaskEdBox1
.SelStart = 0
.SelLength = Len(.Text)
.SelText = "H0H0H0"
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