How to change windows cursor in WPF?

I like to change the cursor when the user clicks a button. I can use FrameworkElement.Cursor. But it only changes the cursor for my current application.

But I need my whole Windows cursor to change. I mean, if you move the mouse outside of my application, it should show my cursor (and not the default arrow).

How to do it?

+3
source share
1 answer

To accomplish this, you need to change the registry value and then make an API call, check this MSDN message for more details on how to do this:

How to change the system cursor using Visual C # .NET?

Also check out this link:

Changing a global mouse cursor or cursor layout with C #?

+2

All Articles