CopyToClipboardEventArgs.EventHandled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether the OnCopyToClipboard event is handled.
public:
property bool EventHandled { bool get(); void set(bool value); };
public bool EventHandled { get; set; }
member this.EventHandled : bool with get, set
Public Property EventHandled As Boolean
Property Value
A Boolean value.
Remarks
The default value for EventHandled is false
.
If the EventHandled property is set to true
, the exception message box does not attempt to copy the message to the clipboard.
If a thread does not belong to a Microsoft Windows form, set the EventHandled property to true
. This prevents an error from occurring when displaying the exception message box in a multi-threaded application.