←Select platform

CancelOnEscape Property (InteractiveService)

Summary

Indicates whether to cancel current operation when the user hits the ESC key on the keyboard.

Syntax

C#
VB
C++
public bool CancelOnEscape { get; set; } 
Public Property CancelOnEscape() As Boolean 
   Get 
   Set 
public:  
   property bool CancelOnEscape 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true to cancel current operation when the user hits the ESC key on the keyboard, otherwise; false. Default value is true.

Remarks

When the value of CancelOnEscape is true (the default value). The service will cancel any operation if the user hits the ESC key on the keyboard (if supported). For example, if the user clicks the mouse or touches down a drag operation will occur. DragStarted and then one or more DragDelta will occur as the user drags on the control. If the user then hits the ESC key on the keyboard before releasing the mouse or touch, then the service will cancel this drag operation by immediately sending a DragCompleted event with the value of IsCanceled set to true. You must check for this value to cancel the operation as well.

Cancelation will also occur if the platform supports notifications when the control loses the focus.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls.WinForms Assembly
Click or drag to resize