Reference Guide
GdPicture14 Namespace / GdViewer Class / TransferEnded Event
Example





In This Topic
    TransferEnded Event (GdViewer)
    In This Topic
    This event is raised right after the latest asynchronous web transfer has been finished when loading or saving a file using HTTP or FTP transfer.

    Please check the corresponded GdViewer.TransferEndedEventHandler for given parameters.

    Syntax
    'Declaration
     
    
    Public Event TransferEnded As GdViewer.TransferEndedEventHandler
    public event GdViewer.TransferEndedEventHandler TransferEnded
    public event TransferEnded: GdViewer.TransferEndedEventHandler; 
    In JScript, you can handle the events defined by another class, but you cannot define your own.
    public: __event GdViewer.TransferEndedEventHandler* TransferEnded
    public:
    event GdViewer.TransferEndedEventHandler^ TransferEnded
    Example
    How to add this event to your GdViewer control.
    'We assume that the GdViewer1 control has been properly integrated.
    Friend WithEvents GdViewer1 As GdPicture14.GdViewer
                
    'Add the event.
    AddHandler GdViewer1.TransferEnded, AddressOf GdViewer1_TransferEnded
                
    'Define the event.
    Sub GdViewer1_TransferEnded(ByVal status As GdPictureStatus, ByVal Download As Boolean) Handles GdViewer1.TransferEnded
        'Do your stuff here.
    End Sub
    //We assume that the GdViewer1 control has been properly integrated.
                
    //Add the event.
    GdViewer1.TransferEnded += GdViewer1_TransferEnded;
                
    //Define the event.
    void GdViewer1_TransferEnded(GdPictureStatus status, bool Download)
    {
        //Do your stuff here.
    }
    See Also