Gets or sets the Cancel key.
Syntax
Visual Basic (Declaration) | |
---|
Public Property CancelKey As Keys |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ScreenCaptureOptions
Dim value As Keys
instance.CancelKey = value
value = instance.CancelKey |
C# | |
---|
public Keys CancelKey {get; set;} |
Property Value
Key code for the key to cancel the capture operation. Default is ESC. You cannot set this to the 'ALT' key. If you do, it will be ignored internally and set to 'ESC'.
Example
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also