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.
 
Back
Top