Can Anybody tell me???

  • Thread starter Thread starter VBNetUser
  • Start date Start date
V

VBNetUser

Hi

I have a text Box control.I have written some code in its
vadating event. When I close the form through forms's cross
(X) button. then also the validation fires.how to prevent
it. because it does't happen in vb6 Forms.

Please Suggest me.
Thanks in Advance

VBNetUser
 
In the forms closing event, set a var eg booIgnore = true, then test for
that in the validate event.

Laurie Paulin
Perth, Western Australia
 
Back
Top