By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,978 Members | 1,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,978 IT Pros & Developers. It's quick & easy.

Event sequence with TreeView & TextBox controls...

P: n/a
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.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.