PRB: Invalid DragIcon Property Is IgnoredID: Q134305 The information in this article applies to:
SYMPTOMSSpecifying 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.
CAUSEThis 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.
WORKAROUNDCheck for validity of the property using the FILE() function, and display a warning if necessary.
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior1. Create a new form. 2. Add a text box to the form. 3. In the Other tab of the properties sheet, set DragMode to 1 - Automatic. 4. In the Init method of the form, add this code:
5. Run the form. Note that no error occurs, and the default DragIcon is
Additional reference words: 3.00 VFoxWin
KBCategory: kbtool kbprb
KBSubcategory: FxtoolFormdes
|
Last Reviewed: August 4, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |