Microsoft KB Archive/134305

= PRB: Invalid DragIcon Property Is Ignored =

Article ID: 134305

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q134305



SYMPTOMS
Specifying an invalid DragIcon property for an object on a form at run time does not result in an error when the object is dragged. The default DragIcon is used.

Setting the DragIcon property to an invalid file name at design time in the properties sheet of the object does result in a "File does not exist" error.



CAUSE
This behavior occurs if the file name provided for the DragIcon property is a non-existing file, or if the file is neither in the default directory nor on the FoxPro path.



WORKAROUND
Check for validity of the property using the FILE function, and display a warning if necessary.



STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Create a new form. Add a text box to the form. In the Other tab of the properties sheet, set DragMode to 1 - Automatic.  In the Init method of the form, add this code: ThisForm.Text1.DragIcon = "anyfile.cur"  Run the form. Note that no error occurs, and the default DragIcon is used when dragging the text box.</li></ol>

Additional query words: 3.00 VFoxWin

Keywords: KB134305

-

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

© Microsoft Corporation. All rights reserved.