This document is archived and information here might be outdated.  Recommended version.


IMouseCursor Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

IMouseCursor Interface

Provides access to members that set the system cursor.

Product Availability

Available with ArcGIS Desktop.

Description

The MouseCursor is a reference to the system mouse cursor object. You can use MouseCursor to set the system mouse cursor to be one of the standard built-in cursors or a custom cursor. This is useful if you want to display a wait cursor while you code performs a large process.

Members

Description
Method SetCursor Sets the application's cursor to cursor id or picture object specified by cursorID. The cursor is automatically reset when the MouseCursor instance is released.

CoClasses that implement IMouseCursor

CoClasses and Classes Description
MouseCursor The the system mouse cursor.

Remarks

The IMouseCursor interface has one method, SetCursor, for setting the system's cursor to the cursor id or picture object specified by the cursorID parameter. The cursor is automatically reset when the MouseCursor instance is released. The instance is released when the calling procedure ends, when the variable that references the mouse cursor is set to nothing, or when something, such as the display of a message box, overrides Windows messaging.