Microsoft KB Archive/171744

= FIX: DragIcon Property with Cursor Files Does Not Work in an EXE =

Article ID: 171744

Article Last Modified on 3/23/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q171744



SYMPTOMS
Including certain cursor files (.cur) in a project causes the DragIcon property to malfunction in a Visual FoxPro for Windows 5.0a executable. The cursor files work properly, however, in the form or the application when run under the development environment of Visual FoxPro 5.0a.



RESOLUTION
Do not include the cursor files in the project. Using the Project Manager, mark the cursor files as Excluded. If the cursor files are excluded from the project, the cursor files need to be supplied with the executable by another means.

A second option is to assign the DragIcon property at runtime.



STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. This has been corrected in Visual FoxPro 6.0.



MORE INFORMATION
When using certain cursor files that shipped with Visual Studio 97, the executable version of an application ignores the DragIcon property. The cursor files that do not work with the DragIcon property in an executable file follow:
 * 4way01.cur
 * 4way02.cur
 * 4way03.cur
 * 4way06.cur
 * 4way07.cur
 * 4way08.cur
 * 4way09.cur
 * C_wait02.cur
 * Ew_06.cur
 * Normal02.cur

Cursor files 4way04.cur, 4way05.cur, and Cross04.cur do function properly.

NOTE: This is not intended as a comprehensive list of cursor files and their suitability for usage with the DragIcon property.

Steps to Reproduce Behavior
 Create a project called Test.  Add a main program file to the project that contains the following code: DO FORM Test READ EVENTS   Create a form called Test and add a shape to the form. Set the following properties of the shape object: BackColor=255,0,0 DragMode=1 DragIcon=devstudio\Samples\graphics\cursor\4way01.cur ** NOTE: The above path to 4way01.cur may need to be changed.   Add a command button containing the following code in the Click event: ThisForm.Release CLEAR EVENTS  Build an application file and execute under it Visual FoxPro development environment. Drag the shape object and notice the DragIcon is the specified cursor.</li> Now build an executable file and run it outside of Visual FoxPro.</li> Drag the shape and notice that no icon appears.</li></ol>

Additional query words: kbvfp600fix

Keywords: kbbug kbfix KB171744

-

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

© Microsoft Corporation. All rights reserved.