For example, you can do this (from the available cursors):
Cursor.Current = Cursors.WaitCursor;
Or your cursor like this:
Cursor.Current = new Cursor("C:\\<путь к файлу>\\icon.cur");
By the way, pay attention to the file extension .cur , for example .gif you can not pack there. VisualStudio has the ability to create a Cursor File (at least it was). All you need is to specify the path to the file and, strictly speaking, the file itself. Will be useful: Cursors - properties
If you want to stitch it into a program, then I think you should add the cursor file ( .cur ) to the project resources. Then in the code to get this file, convert and create a cursor, something like this:
var img = new Bitmap(WindowsFormsApplication1.Properties.Resources.myCursor); Icon icon = Icon.FromHandle(img.GetHicon()); Cursor cur = new Cursor(icon.Handle); Cursor.Current = cur;
This code is given as an alternative example, but it has its drawbacks in the form of leaking native resources. Also, if you click the mouse in the window of another program - a problem may arise. Therefore, I advise you to read this answer Cursor HotSpot in WinForms .NET , it will be more correct using WinAPI .