Compartilhar via


DragIcon Property

Specifies the icon displayed as the pointer during a drag-and-drop operation. Available at design time and run time.

Control.DragIcon[ = cIcon]

Property Values

  • cIcon
    Specifies the file that contains the icon to use as the mouse pointer. Typically, you specify the icon file using the Properties window at design time. The file you specify must have the .cur extension and be saved in VGA-Mono 2-Color 32 x 32 format. If you try to use a color .cur file, an error message is generated. You can use ImageEdit, to create a two-color .cur file. If you omit cIcon, an arrow pointer inside a rectangle is used.

Remarks

DragIcon is useful for providing visual feedback during a drag operation — for instance, to indicate that the source control is over an appropriate target. DragIcon takes effect when the user initiates dragging. Typically, you set DragIcon during a MouseDown or DragOver event.

If you set the DragIcon property at design time and the file you specify does not exist, Visual FoxPro displays an error message, but the property remains set to the file you specified. Visual FoxPro ignores the DragIcon property at run time if it is set to a file that does not exist.

See Also

Drag Method | DragDrop Event | DragMode Property | MouseDown Event | MouseMove Event | MousePointer Property | MouseUp Event

Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Grid | Image | Label | Line | ListBox | OLE Bound Control | OLE Container Control | OptionButton | OptionGroup | Page | Shape | Spinner | TextBox