Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Oct 10, 2001
Messages
221
Location
US
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.
 
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

Back
Top