Hello,
It seems it doesn't work when the panel is transparent
It works when I remove these lines :
MainForm.SetFormStyle("TRANSPARENT")
MainForm.BackColor = fx.Colors.Transparent
May be I'm wrong but I think it may be possible to get the absolute mouse position from the screen and not from an object