I have an application that runs in the tray and that display a
secondary topmost form.
I would like that form to get the focus when the user passes over it
when the mouse.
I've added the code
this.Activate()
in the mouse move event of the topmost form but notices a strange
behaviour. The first time the event is generated the taskbar button
associated to the form flashes but the form doesn't get the focus. It
get the focus some time after after more MouseMove events are
generated.
Any idea on how I can solve this? (I can post some sample code if
needed).
Thanks.