GdPicture.NET Reference Guide
DataReceived Event (GdViewer)
Example 





GdPicture14 Namespace > GdViewer Class : DataReceived Event
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.

Syntax
'Declaration
 
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
public:
event GdViewer.DataReceivedEventHandler^ DataReceived
Remarks
Just to inform you that you can change the packet size used for transferring data by the SetHttpTransferBufferSize method.
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.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

Reference

GdViewer Class
GdViewer Members
GdViewer.DataReceivedEventHandler Delegate
SetHttpTransferBufferSize Method
DisplayFromHTTP(String,String,Int32) Method
DisplayFromFTP(String,String,String,String,Int32) Method