Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MaskEdBox
Message
 
To
19/11/1999 11:10:19
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00293070
Message ID:
00293148
Views:
31
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
Previous
Reply
Map
View

Click here to load this message in the networking platform