W WhoopDing Feb 15, 2005 #1 How do I handle all click events for all controls in Panel.Controls with one event procedure?
C Chris Calzaretta Feb 15, 2005 #2 There is some special crap you need to do to create a control array in .net So if your not using a control array the only way i know how to handle mult events. (Important::: events must have same signature) public sub EventHandler(byval sender, byval e) handles control1.click,control2.click,control3.click,control4.click end sub
There is some special crap you need to do to create a control array in .net So if your not using a control array the only way i know how to handle mult events. (Important::: events must have same signature) public sub EventHandler(byval sender, byval e) handles control1.click,control2.click,control3.click,control4.click end sub
C Cor Ligthert Feb 15, 2005 #3 WhoopDing, Somebody asked this as well today and he got some answers and told that he was on the right track. http://groups-beta.google.com/group...ae4b5144750/e767d35f30f3899f#e767d35f30f3899f Have a look for it. Cor
WhoopDing, Somebody asked this as well today and he got some answers and told that he was on the right track. http://groups-beta.google.com/group...ae4b5144750/e767d35f30f3899f#e767d35f30f3899f Have a look for it. Cor
W WhoopDing Feb 15, 2005 #4 That was me! Went off at a tangent for a while. Sorted it now. What would be nice though, would be to add a handler for Panel.Controls().Command that covers all elements.
That was me! Went off at a tangent for a while. Sorted it now. What would be nice though, would be to add a handler for Panel.Controls().Command that covers all elements.
C Cor Ligthert Feb 15, 2005 #5 WhoopDing, What you ask is in the sample I show, so I don't see the problem Cor