ExceptionMessageBox.OnCopyToClipboard Event

Occurs when exception message text is copied from the message box to the Clipboard.

Namespace: Microsoft.SqlServer.MessageBox
Assembly: Microsoft.ExceptionMessageBox (in microsoft.exceptionmessagebox.dll)

Syntax

'Declaration
Public Event OnCopyToClipboard As CopyToClipboardEventHandler
public event CopyToClipboardEventHandler OnCopyToClipboard
public:
event CopyToClipboardEventHandler^ OnCopyToClipboard {
    void add (CopyToClipboardEventHandler^ value);
    void remove (CopyToClipboardEventHandler^ value);
}
/** @event */
public void add_OnCopyToClipboard (CopyToClipboardEventHandler value)

/** @event */
public void remove_OnCopyToClipboard (CopyToClipboardEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Remarks

This event is used when the message box in displayed in a multi-threaded application from a thread that does not belong to a Microsoft Windows form. In this case, an exception occurs and this enables the action to be marshaled manually to the appropriate thread.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

ExceptionMessageBox Class
ExceptionMessageBox Members
Microsoft.SqlServer.MessageBox Namespace