I assume from your question, that you want to run code in your specific app whenever the mouse moves regardless of where on the screen the mouse pointer is, and regardless of what pp has the focus. If so, then you might want to rethink this.
It's possible, but ... it requires adding a Global Hook into the whole system, and that's very dangerous - if your code doesn't work perfectly every time then your whole system will become unstable, and may require a reload from a recent backup to get it working again at all - developing global hooks code is not a job for a beginner, not even slightly and should be thought about and pre-planned (including those essential backups) carefully before you start coding.
If you decide to ignore this and proceed, then start here:
https://support.microsoft.com/en-gb/help/319524/how-to-set-a-hook-in-visual-basic-net[
^]