Help Center

MousePointerfunction

Returns or sets a value indicating the type of mouse pointer displayed when the mouse is over a particular part of an object at run time.

Windowsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION MousePointer () AS MousePointerSettings
PROPERTY MousePointer (BYVAL settings AS MousePointerSettings)

Description

Returns or sets the default arrow cursor to different standard system shapes or a custom image.

Remarks

It provides immediate visual feedback to the user about what kind of interaction is possible (e.g., resizing columns, selecting text, or indicating a wait state).

It allows you to use standard Windows cursors or load a custom icon file (.ico or .cur).

The cursor may be temporarily overridden by the control during certain operations:

  • hovering over column borders (column resizing)
  • hovering over row borders (row resizing)
  • dragging column headers *scrolling

After these temporary overrides, the cursor returns to the value specified by MousePointer.

You typically set MousePointer using predefined constants:

Examples

' Change cursor to hourglass while processing grid.MousePointer = flexHourglass

' ... run a long database query or data load ...

' Reset cursor to default when done grid.MousePointer = flexDefault

' Load a custom icon from a file grid.MouseIcon = LoadPicture("C:\path\to\mycursor.ico") grid.MousePointer = flexCustom

Reference