This documentation is archived and is not being maintained.

QueryContinueDragEventArgs.EscapePressed Property

Gets whether the user pressed the ESC key.

[Visual Basic]
Public ReadOnly Property EscapePressed As Boolean
[C#]
public bool EscapePressed {get;}
[C++]
public: __property bool get_EscapePressed();
[JScript]
public function get EscapePressed() : Boolean;

Property Value

true if the ESC key was pressed; otherwise, false.

Remarks

By default, the QueryContinueDrag event sets Action to DragAction.Cancel if EscapePressed is true.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

QueryContinueDragEventArgs Class | QueryContinueDragEventArgs Members | System.Windows.Forms Namespace | DoDragDrop

Show: