MousePointer Property (ActiveX Controls)

       

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.

Syntax

object.MousePointer [= value]

The MousePointer property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value An integer specifying the type of mouse pointer displayed, as described in Settings.

Settings

The settings for value are:

Constant Value Description
vbDefault 0 (Default) Shape determined by the object.
VbArrow 1 Arrow.
VbCrosshair 2 Cross (crosshair pointer).
VbIbeam 3 I beam.
VbIconPointer 4 Icon (small square within a square).
VbSizePointer 5 Size (four-pointed arrow pointing north, south, east, and west).
VbSizeNESW 6 Size NE SW (double arrow pointing northeast and southwest).
VbSizeNS 7 Size N S (double arrow pointing north and south).
VbSizeNWSE 8 Size NW SE (double arrow pointing northwest and southeast).
VbSizeWE 9 Size W E (double arrow pointing west and east).
VbUpArrow 10 Up Arrow.
VbHourglass 11 Hourglass (wait).
VbNoDrop 12 No Drop.
VbArrowHourglass 13 Arrow and hourglass. (Only available in 32-bit Visual Basic.)
vbArrowQuestion 14 Arrow and question mark. (Only available in 32-bit Visual Basic.)
vbSizeAll 15 Size all. (Only available in 32-bit Visual Basic.)
vbCustom 99 Custom icon specified by the MouseIcon property.

Remarks

You can use this property when you want to indicate changes in functionality as the mouse pointer passes over controls on a form or dialog box. The Hourglass setting (11) is useful for indicating that the user should wait for a process or operation to finish.

Note   If your application calls DoEvents, the MousePointer property may temporarily change when over a custom control.