Validation controls

  • Thread starter Thread starter Brian Nantz
  • Start date Start date
B

Brian Nantz

A simple way to make up for the missing ErrorProvider class is setting
the control's BackColor property to red if not valid, and back to it's
original color on the next (Text)Change (using it's Changed event).

At least in .NET CF 1.0 it seems that Validating / Validated is not
properly fired when leaving a form (e.g. calling Hide) but you can fix
this using the form's Closing event.
 

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