Panel Event
-
Hi all, I need help with control events. In this specific case I have a panel with another control inside in a Dock.Fill mode. Now i need to catch the mouse_click event of the panel... Maybe this is a stupid question but I don't know how can I resolve it Please help me. Thanks in advance Cliffer
-
Hi all, I need help with control events. In this specific case I have a panel with another control inside in a Dock.Fill mode. Now i need to catch the mouse_click event of the panel... Maybe this is a stupid question but I don't know how can I resolve it Please help me. Thanks in advance Cliffer
You cannot catch mouse click event because you cannot click on the panel. In Dock.Fill mode, your control covers the entire panel. You may catch the click event in the control and pass it to the panel. Calin
-
You cannot catch mouse click event because you cannot click on the panel. In Dock.Fill mode, your control covers the entire panel. You may catch the click event in the control and pass it to the panel. Calin
How do I actually do that? :confused: I tried to call one control's event (forgot which one but that shouldn't matter) and call it inside another control's click event. Yet the only thing I know how to do is to add a new EventHandler to a control's events and then add some code for it, but not how to call a event without the user explicitly triggering it.
modified on Friday, March 6, 2009 6:01 AM