Moving controls in realtime
-
Hi, I'm using the events mousemove/mousedown/mouseup to move a panel in my winform in realtime. This is working fine, but this panel may have other controls like labels. The events are not raised if the user tries to click on a label or any object inside the panel. Is there any way to get around this problem without registering all the controls on the panel with the mouse events? (like a parameter that would "transmit" the events to the parent controller) Regards, Tony
-
Hi, I'm using the events mousemove/mousedown/mouseup to move a panel in my winform in realtime. This is working fine, but this panel may have other controls like labels. The events are not raised if the user tries to click on a label or any object inside the panel. Is there any way to get around this problem without registering all the controls on the panel with the mouse events? (like a parameter that would "transmit" the events to the parent controller) Regards, Tony
-
i tried it once and i found that the only solution was to add the handle to all the chld controls
foreach (Control c in myPanel.Controls){
c.Event += delegateMethod();
}Saludos!! ____Juan
I see, thank you!