I am testing the following code:
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
Rectangle leftRect = new Rectangle(0, 0, 32, this.Height);
if (leftRect.Contains(e.Location))
{
MessageBox.Show("Hello World");
}
}
The idea is that when the mouse enters a region 32 pixels wide, to the left of the container control, a message appears (OK, in R/L it will do something else, but this is purely testing for now).
The issue is that when a child control populates the rectangle region, the ContainerControl does not receive the MouseMove event, as it is being handled by the child control.
So my question is, how to I get my ContainerControl to receive the MouseMove event, even when its children populate the same rectangle region?