How To Modify the Windows Default CursorLast reviewed: November 29, 1996Article ID: Q160041 |
The information in this article applies to:
SUMMARYThe MousePointer property in Visual Basic (which applies to Form, MDIForm, and a set of selected controls) allows you to modify the cursor's shape for a Visual Basic application. However, if the cursor is moved away from the Visual Basic application, its shape is determined by other applications or by the Desktop. This article describes how to modify the cursor's default settings so that these changes are reflected throughout the Desktop. NOTE: Due to a bug in Windows NT, this article only applies to Windows 95. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONAt times, you may want to design an application in Visual Basic that allows the user to run other applications or tasks within the same application while a task is running. A simple way to inform the user that this particular state exists is to modify the cursor to be both an arrow and an hourglass until the first task is completed. You can accomplished this easily with the SetSystemCursor API.
Step-by-Step ExampleThe following example simulates starting a task with the first CommandButton and halting it with the second CommandButton:.
|
KBCategory: kbusage kbhowto
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |