I entered Date as the format for an edit box. How do I get the forward slashes, i.e., mm/dd/yy to show up so the user will only enter 080701 for the date & the box will show 08/07/01. ??
Thanks for any input!
John
Printable View
I entered Date as the format for an edit box. How do I get the forward slashes, i.e., mm/dd/yy to show up so the user will only enter 080701 for the date & the box will show 08/07/01. ??
Thanks for any input!
John
Enter mask
__/__/__ ' these are underscores
Iouri Boutchkine
[email protected]
Hi,
You can use the Masked Edit control (MSMASK32.OCX). This control looks like TextBox, but have the Mask property. For example:
MaskEdBox1.Mask = "##/##/##"
Then, when you input"080701", what you get is: "08/07/01" (MaskEdBox1.Text).
Hope this helps.
Regards,
Michi
Where do you enter the mask?