My first and most important question is how does one capture a click event before any of the child controls? I have multiple panels that have different controls in them, and whenever I click anywhere in one, I want to change a value that says that that panel is the one selected.

However, OnClick, OnMouseClick, OnMouseDown all do not get fired before or after the OnClick of the control clicked on. How does one hook into this?