Hello.
I have an array of textboxes which on form load are empty.
I want, when a textbox.text has been changed, program calculates sum of all arrays and put it in other textbox that is not member of this array.(if one or more textboxes are empty it should assume that it is zero)
How should I write it? because, if e.g array has 10 members, it creates 10 methods for each textbox. (textchanged event)
Thanks.
Calculate Sum with textchanged event
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sam HobbsRank #107 · 20.5K reputationPosted Aug 22, 2010, 6:50 AM EDT
Majid KamaliRank #6,453 · 266 reputationPosted Aug 22, 2010, 8:38 AM EDT
Textchanged event is an existing event.
I just want to use it, but for each textbox it creates new function. I want, all of them invoke one function.