Can't detect a mouse exit into a toolbar

Hi,

I’ve an application that uses a special cursor in a Canvas control that takes up most of the main window. I’ve put a tool bar at the top of the window and the canvas cursor stays active if I move from the canvas onto the tool bar. If I move outside of the window and then onto the tool bar I get the system cursor (which is what I want). I’ve tried putting code into the Canvas mouse exit and mouse enter events, but these don’t fire when moving back and forward between the toolbar and canvas.

Any ideas?

I just encountered that a couple days ago in a Windows project. Moving from the window to the toolbar and back does not fire MouseExit or MouseEnter. And MouseMove stops working when over the toolbar.

I ended up using a multiple timer to monitor the mouse position with System.MouseX and System.MouseY.