R
Robains
I'm using a TextBox_Leave event to trigger the saving of a value to my
object, however, my object is created via the AfterSelect from a
TreView control -- which is fine.
BUT, the problem seems to be if my focus is on the TextBox and I click
on a TreView control node the sequence of events seems to be:
TreView_AfterSelect
TextBox_Leave
Now I would have expected this sequence to be the other way around??
I've tried with TextBox_Validating and TextBox_Validated and get the
same results. What the heck am I doing wrong, conceptually the Leave
SHOULD be triggered first? And if I'm in the TextBox validate
event, what would happened if I cancelled validation -- this should
mean NO events after the (CauseValidation is true on TreView) cancel
should be processed, yet .NET is process the AfterSelect BEFORE my
Validating or Leave events.
What the heck am I doing wrong?
Thanks, Rob.
object, however, my object is created via the AfterSelect from a
TreView control -- which is fine.
BUT, the problem seems to be if my focus is on the TextBox and I click
on a TreView control node the sequence of events seems to be:
TreView_AfterSelect
TextBox_Leave
Now I would have expected this sequence to be the other way around??
I've tried with TextBox_Validating and TextBox_Validated and get the
same results. What the heck am I doing wrong, conceptually the Leave
SHOULD be triggered first? And if I'm in the TextBox validate
event, what would happened if I cancelled validation -- this should
mean NO events after the (CauseValidation is true on TreView) cancel
should be processed, yet .NET is process the AfterSelect BEFORE my
Validating or Leave events.
What the heck am I doing wrong?
Thanks, Rob.