E
ecurb
Hi,
I have a form with several text boxes on it.
Each test box requires some validation ... for being numeric etc.
and I am successfully using the Validating and Validated events of each
text box and an ErrorProvider to achieve this...
However, I want to validate one of the text boxes such that the user
*must* enter a value... ie. the text box must be non-blank.
I tried putting code in the Validating event to disallow a blank
value.. this did not work.
The problem is that the Validating event is only invoked if the text
box gets focus. If the user never clicks on the text box, then me error
is never displayed.
How do I force this validation .. even if text box never gains focus ?
Many thanks.
I have a form with several text boxes on it.
Each test box requires some validation ... for being numeric etc.
and I am successfully using the Validating and Validated events of each
text box and an ErrorProvider to achieve this...
However, I want to validate one of the text boxes such that the user
*must* enter a value... ie. the text box must be non-blank.
I tried putting code in the Validating event to disallow a blank
value.. this did not work.
The problem is that the Validating event is only invoked if the text
box gets focus. If the user never clicks on the text box, then me error
is never displayed.
How do I force this validation .. even if text box never gains focus ?
Many thanks.