This documentation is archived and is not being maintained.

MousePointer Property (ActiveX Controls)

Visual Studio .NET 2003

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:

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.


The settings for value are:

Constant Value Description
xxxDefault 0 (Default) Shape determined by the object.
xxxArrow 1 Arrow.
xxxCrosshair 2 Cross (crosshair pointer).
xxxIBeam 3 I beam.
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).
xxxUpArrow 10 Up Arrow.
xxxHourglass 11 Hourglass (wait).
xxxNoDrop 12 No Drop.
xxxArrowHourglass 13 Arrow and hourglass.
xxxArrowQuestion 14 Arrow and question mark.
xxxSizeAll 15 Size all.
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.

See Also

Applies To: Masked Edit Control