Share via


FormListControl.dragOver Method

Identifies when a user drags an object over an item within the bounds of a form list control.

Syntax

public FormDrag dragOver(
    FormControl dragSource, 
    FormDrag dragMode, 
    int x, 
    int y)

Run On

Client

Parameters

  • dragSource
    Type: FormControl Class
    A FormControl object that specifies the form list control.
  • dragMode
    Type: FormDrag Enumeration
    A FormDrag system enumeration value that specifies whether the object is moved, copied, or not moved to a specified position.
  • x
    Type: int
    An Integer data type that indicates the x-coordinate of the object's position.
  • y
    Type: int
    An Integer data type that indicates the y-coordinate of the object's position.

Return Value

Type: FormDrag Enumeration
A FormDrag system enumeration value that specifies whether the object is moved, copied, or not moved to a specified position.

Remarks

This method is called only if the DragDrop property is set to Manual for the control and a beginDrag event has already been started. For more information about the event, see beginDrag.

To override this method on a list view control, right-click the Methods node below the control, point to Override Method, and then click dragOver.

For information about best practices for forms and code, see No Code in Forms.

See Also

Reference

FormListControl Class