F
Flomo Togba Kwele
I have a UserControl with 2 textboxes as its only controls. AutoValidate is set
to EnableAllowFocusChange, although I've tried EnablePreventFocusChange and
Disable with the same results. The textboxes are not databound.
I have also defined an ErrorProvider, which is set in both textbox Validating
eventhandlers when appropriate.
The 2 boxes represent a starting and ending number. The number in the second
textbox must not be less than the number in the first.
I enter a number in the first text box, tab to the second, enter a number and
then click on a toolstripbutton to begin the process. The first thing I do is
call the UserControl's ValidateChildren method. Since I have not tabbed off the
second textbox, validation on it has not occured.
In fact, the validating eventhandler for the first textbox was not fired. What
do I have to do to make the Validating eventhandlers fire?
Thanks, Flomo
--
to EnableAllowFocusChange, although I've tried EnablePreventFocusChange and
Disable with the same results. The textboxes are not databound.
I have also defined an ErrorProvider, which is set in both textbox Validating
eventhandlers when appropriate.
The 2 boxes represent a starting and ending number. The number in the second
textbox must not be less than the number in the first.
I enter a number in the first text box, tab to the second, enter a number and
then click on a toolstripbutton to begin the process. The first thing I do is
call the UserControl's ValidateChildren method. Since I have not tabbed off the
second textbox, validation on it has not occured.
In fact, the validating eventhandler for the first textbox was not fired. What
do I have to do to make the Validating eventhandlers fire?
Thanks, Flomo
--