'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.
}