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.
object.MousePointer [= value]
The MousePointer property syntax has these parts:
|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.|
The settings for value are:
|xxxDefault||0||(Default) Shape determined by the object.|
|xxxCrosshair||2||Cross (crosshair pointer).|
|xxxIconPointer||4||Icon (small square within a square).|
|xxxSizePointer||5||Size (four-pointed arrow pointing north, south, east, and west).|
|xxxSizeNESW||6||Size NE SW (double arrow pointing northeast and southwest).|
|xxxSizeNS||7||Size N S (double arrow pointing north and south).|
|xxxSizeNWSE||8||Size NW SE (double arrow pointing northwest and southeast).|
|xxxSizeWE||9||Size W E (double arrow pointing west and east).|
|xxxArrowHourglass||13||Arrow and hourglass.|
|xxxArrowQuestion||14||Arrow and question mark.|
|xxxCustom||99||Custom icon specified by the MouseIcon property.|
Note The xxx prefix refers to the ActiveX control in use. For example, the Masked Edit control uses msk for the prefix. Prefixes for the constants change with the specific control or group of controls. However, the description remains the same unless indicated.
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 an ActiveX control.
Applies To: Masked Edit Control