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
public bool EscapePressed {get;}
public: __property bool get_EscapePressed();
public function get EscapePressed() : Boolean;

Property Value

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


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


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