Surely because you have a mask. Use this code to set a value into the MaskEdit box:
dim strX as string
strx = mask1.mask
mask1.mask = ""
mask1.text = YourValue
mask1.mask = strx
>Hi Eric,
>
>Actually, I'm already using MaskedEdit, but it seems unable assign value to text or value property when it is not bound to the datafield, isn't it?
>
>Aston
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com