I am trying to create a "tooltip" which contains a custom control. I implemented it using ToolStripDropDown which does what I need - closes when the user clicks somewhere else, or activates another window etc.
However, I'd like to be able to get the MouseMove event in the parent control even when the ToolStripDropDown is shown. I tried to set the Capture property of the parent control at various stages (before showing the dropdown, in its Opened event handler etc.) but it is always immediately set back to false. Is there a way (not necessarily employing the Capture property) to get the MouseMove event in the parent control? And no, I don't want to consider ugly hacks like using a timer and periodically checking the mouse position.
If you want to know the mouse position all the time, then you should register
MouseDownevent for both the parent control and theToolStripDropDowncontrol, something like this:For
ToolStripDropDownyou should calculate the relative location to its parent