Visual Basic Reference
MousePointer Property
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. |
vbArrowQuestion | 14 | Arrow and question mark. |
vbSizeAll | 15 | Size all. |
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 an ActiveX component.