Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Masked Edit Control Question

Status
Not open for further replies.

FredGarvin

Mechanical
Oct 10, 2001
221
I am using a masked edit control on a form for a date input. One thing is a bit annoying with it, perhaps someone can tell me how to fix this.

The date format is fine, however, when one tabs to the control to enter the date, a preliminary keystroke is required to invoke the mask. In other words, for someone to enter the date "06/08/04" they would have to enter "X060804" where X is any keystroke.

How can I get rid of the need for this extra key stroke?

Thanks.
 
Replies continue below

Recommended for you

I just found out what I did wrong that was causing the need for the extra key stroke. I put the format statement in the text change event. So I needed to initiate the event with a key stroke (the extra one) to invoke the format.

I'm slapping myself for that one.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor