Form Validation in the Compact Framework

What is the recommended way to validate a Compact Framework form?  With no CausesValidation property available, I think setting AutoValidate=EnablePreventFocusChange is out.  Otherwise, the user is effectively trapped inside of that control with no way out other than to close the form.  Do you leave it on EnableAllowFocusChange and simply track the validation state of the form with variables (ie Control lastErrorControl).
LVL 11
Who is Participating?
b_levittConnect With a Mentor Author Commented:
I just ended up creating a list of controls and there corresponding error message.  Upon successful validation, a control removes itself from the list.  I then check this list for Count==0 upon a particular action and the refocus to the first one in the list.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.