Changes the pointer to the wait pointer.
object.WaitCursor ( Code ) |
|
- Code
- Required. A Long that represents the wait pointer code.
Code is a long representing the wait pointer code. The following Codes are supported:
| Code | Description |
|---|---|
| 1 | Display the wait pointer. |
| 0 | Restore the wait pointer</ TD> |
| -1 | End the wait pointer. |
Sub DoSomething
'Display the wait pointer
Application.WaitCursor (1)
'Do some lengthy processing
'Remove the wait pointer
Application.WaitCursor (-1)
End Sub