Microsoft KB Archive/201588

= BUG: Custom Mouse Pointer Changes Back to Default =

Article ID: 201588

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q201588



SYMPTOMS
When a custom mouse pointer is placed over a control's borders on a Visual Basic form, the pointer may change back to the default.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
The following example uses a TextBox control, but this problem occurs with other controls as well. This example also uses a cursor file from the default install location for the Graphics option. These can be found in the \Common\Graphics\Cursors folder on the Visual Basic 6.0 CD. Make sure that the path is correct for a cursor file that is available to your system.

Steps to Reproduce Behavior
 In Visual Basic 6.0, create a new Standard EXE project. Form1 is created by default. Place a TextBox control on Form1. Double-click the form to open the code window for Form1.  Place the following code in the Form_Load event of Form1. Me.MousePointer = vbCustom Set Me.MouseIcon = LoadPicture("C:\Program Files\Microsoft Visual Studio\Common\Graphics\Cursors\NS_04.CUR")  Run the program. Move the mouse to hover over the border of the TextBox. The custom cursor changes back to the default.</li></ol>

Keywords: kbbug kbcodesnippet kbpending KB201588

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.