Reference Guide
GdPicture14 Namespace / GdViewer Class / DataReceived Event

In This Topic
    DataReceived Event (GdViewer)
    In This Topic
    This event is raised right after the packet of the specified size has been successfully transferred during loading or saving a file using HTTP or FTP transfer.

    Please check the corresponded GdViewer.DataReceivedEventHandler for given parameters.

    Public Event DataReceived As GdViewer.DataReceivedEventHandler
    public event GdViewer.DataReceivedEventHandler DataReceived
    public event DataReceived: GdViewer.DataReceivedEventHandler; 
    In JScript, you can handle the events defined by another class, but you cannot define your own.
    public: __event GdViewer.DataReceivedEventHandler* DataReceived
    event GdViewer.DataReceivedEventHandler^ DataReceived
    Just to inform you that you can change the packet size used for transferring data by the SetHttpTransferBufferSize method.
    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.DataReceived, AddressOf GdViewer1_DataReceived
    'Define the event.
    Sub GdViewer1_DataReceived(ByVal PercentProgress As Single, ByVal SizeLeft As Integer, ByVal TotalLength As Integer) Handles GdViewer1.DataReceived
        'Do your stuff here.
    End Sub
    //We assume that the GdViewer1 control has been properly integrated.
    //Add the event.
    GdViewer1.DataReceived += GdViewer1_DataReceived;
    //Define the event.
    void GdViewer1_DataReceived(float PercentProgress, int SizeLeft, int TotalLength)
        //Do your stuff here.
    See Also