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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top