PRB: Using Color Cursors in a Visual Basic Application (267849)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q267849 SYMPTOMS
When you use a color cursor for a form's MousePointer, it appears in black and white rather than in color.
CAUSE
Visual Basic does not provide any support for color cursors and, therefore, a color cursor cannot be used while running in the Visual Basic IDE. However, a color cursor can be used in compiled Visual Basic applications. Please see the "More Information" section for details.
RESOLUTION
There are two ways to get color cursors in the compiled application:
- You can use Icons instead of actual cursors. These display in color, but the Hot Spot is always at the center of the image and you cannot change it.
- The best solution is to use the LoadResPicture function to load the color cursor(s) from a Resource file. This way the Operating System provides the support and the colors do appear when running the compiled application.
STATUS
This behavior is by design.
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
138529 PRB: Visual Basic 4.0 Does Not Support Color Cursor Files
194409 RESFILE.EXE Stores Any File Type in a Resource File
MSDN Help topic: "Anatomy of a Resource Block" from Hardcore Visual Basic.
Modification Type: | Major | Last Reviewed: | 8/13/2002 |
---|
Keywords: | kbAddIn kbColor kbCursor kbDSupport kbprb KB267849 |
---|
|