Event sequence with TreeView & TextBox controls...

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.
 
R

Robains

NO takers :(

Is this a "real" bug or an "intended" feature? If I can't rely on
proper event sequence order this will certainly handicap any 2003
.NET efforts -- actually it is kind of a show stopper for me. I'm
really hoping it is just my lack of understanding.

I've searched Google, MSDN, this newsgroup, and more and have not come
up with any info:

1. Event sequence processing seems very absent in MS docs
2. AfterSelect
3. Leave, Validating, Validated

Anyone? :? Please
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top