Validate a form

  • Thread starter Thread starter nico193
  • Start date Start date
N

nico193

In a winform, before saving, I call the function
this.Validate() to make sure all controls contents are
good (verifications are made in the Validating event of
each control).

In some cases, the call to the validate() function returns
false. How can I know which control causes the validation
to fail ?

Thanks for help,

Nico
 

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