>It's gotten to where folks do not bother with leading zeros. It seems to me that "this.value" in KeyPress event does not get fully evaluated with the latest char that is entered which is the "0".
Not sure why you want to do this in Keypress event instead of LostFocus or Valid, but I would do this;
*Textbox.Keypress()DoDefault() && Let the textbox process the keypress and update the value property* Now do your checkingNODEFAULT&& Prevent further processing