From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As MouseCursor )
aDesktopWindow.MouseCursor = newMouseCursorValue
MouseCursorValue = aDesktopWindow.MouseCursor

New in 2021r3

Supported for all project types and targets.

The cursor to be displayed while the mouse is within the window and the DesktopApplication class’s MouseCursor property is Nil.


If the DesktopApplication class MouseCursor is not Nil, non-Nil MouseCursors belonging to any windows or Controls are ignored. If the window’s MouseCursor property is not Nil, the MouseCursor properties of any Controls are ignored. You can use the cursors in the Cursors module to set the MouseCursor for the window.


This line sets the default cursor to the finger pointer.

Me.MouseCursor = System.Cursors.FingerPointer