onTextChanged Event for many Textboxes c#

Posted by Alan Bennett on Stack Overflow See other posts from Stack Overflow or by Alan Bennett
Published on 2010-05-29T08:12:33Z Indexed on 2010/05/29 8:22 UTC
Read the original article Hit count: 280

Filed under:
|
|
|

Hi,

I am currently building a prototype for a new system screen, and i am using c# to build this.

The question i have is, i currently have 14 textboxes which are filled from a condition from a couple of other controls on the screen. these 14 textboxes all add up to a total shown in another textbox.

as these textboxes are editable (in case the client wishes to increase the value) (cant go into to much detail but they will) I need to have a firable ontextchange event for when the values change so the total box updates.

however i have a feeling there must be a way of not having to create 14 different events, is there a way that i can have 1 event which fires if any of the 14 text boxes are fired?

thanks

Alan

© Stack Overflow or respective owner

Related posts about c#

Related posts about events