Click to See Complete Forum and Search --> : Edit box


John Reynolds
August 7th, 2001, 10:25 AM
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

Iouri
August 7th, 2001, 10:38 AM
Enter mask

__/__/__ ' these are underscores

Iouri Boutchkine
iouri@hotsheet.com

michi
August 7th, 2001, 10:38 AM
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

John Reynolds
August 7th, 2001, 10:42 AM
Where do you enter the mask?