OnCancel Event  
 

The OnCancel event is generated when an operation is canceled.

Syntax

Private Sub object_OnCancel([Index As Integer])

Remarks

The OnCancel event is generated after an operation is canceled by calling the Cancel method.

Example

Private Sub FileTransfer1_OnCancel()
    lblFileStatus.Caption = "Operation canceled"
End Sub

See Also

OnError Event, Cancel Method