Posted on 2007-08-03
i create a textcontrols (combination from label, textbox etc.). I put those controls on a form. When sometthing changed in the textbox the changed event fires. I raise that event from the controls. In the textchanged event a put a variable IsChanged = true. When I stop the form i check the variable IsChanged and if set I can fire a msgbox "save changes?" No problem sofar. When i have 50 textboxes i have to fill every textchanged event. The question:
Is there a way that when i build something in the textchanged event from the control control that i don't have to fill the 50 events from the controls on the form. Something like a public variable but then more as a "commen property".