VLPropertyList Reference

MousePointer

See Also See Also Applies To Applies To

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:

PartDescription
object An object expression that evaluates to an object in Applies to list.
Value An integer specifying the type of mouse pointer displayed, as described in Settings.

 

Setting

The settings for Value are:

Constant Value Description
ConstantvbDefault 0 (Default) Shape determined by the object.
ConstantVbArrow 1 Arrow.
ConstantVbCrosshair 2 Cross (crosshair pointer).
ConstantVbIbeam 3 I beam.
ConstantVbIconPointer 4 Icon (small square within a square).
ConstantVbSizePointer 5 Size (four-pointed arrow pointing north, south, east, and west).
ConstantVbSizeNESW 6 Size NE SW (double arrow pointing northeast and southwest).
ConstantVbSizeNS 7 Size N S (double arrow pointing north and south).
ConstantVbSizeNWSE 8 Size NW SE (double arrow pointing northwest and southeast).
ConstantVbSizeWE 9 Size W E (double arrow pointing west and east).
ConstantVbUpArrow 10 Up Arrow.
ConstantVbHourglass 11 Hourglass (wait).
ConstantVbNoDrop 12 No Drop.
ConstantVbArrowHourglass 13 Arrow and hourglass. (Only available in 32-bit Visual Basic.)
ConstantvbArrowQuestion 14 Arrow and question mark. (Only available in 32-bit Visual Basic.)
ConstantvbSizeAll 15 Size all. (Only available in 32-bit Visual Basic.)
ConstantvbCustom 99 Custom icon specified by the MouseIcon property.

 

Remark

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.