>HI,
>
>I am facing problem. If I am using valid event to valid some text than its validating when pressing enter key or selecting through mouse. If I accepting default value and leaving field its does not do any validation since valid even fire only at any changes.
>
>If i keep validation code on lostfocus its fires when i loose focus by tab key. But in this case if validation return false cursor shoul stay on same filed untill it become tru.
>
>How can I do the same as setfous on same text not accepting....Please help.
>
>TIA
>Sajjad
Sajjad,
Add a nodefault and this.setfocus. ie :
if FailedToValidate
nodefault
this.SetFocus()
else
Cetin