how to handle multiple events from a control collection?

Y

Yahoo

I have a control that contains other controls. the child controls contain an
event called 'changed' that fires if its state has changed. Sometimes
multiple child controls can have changes (hence multiple child controls
fire), Is there a way in the parent control to only have its 'changed' event
fire once instead of X number of times? The problem that i am running into
is that the parent would need to know that all child controls have been
processed and then fires.

In a diagram...
Parent
-> child
-> child
-> child

Parent
-> TextBox(fires [from RaiseChangedEvents])
-> TextBox
-> TextBox (fires [from RaiseChangedEvents])

Parent (fires ONCE)
-> TextBox
-> TextBox
-> TextBox
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top