Hi
I am using the system.windows.controls.webbrowser component, I need to display in a different component the amount of bytes downloaded from the moment the component was started, any idea how this can be done?
Hi
I am using the system.windows.controls.webbrowser component, I need to display in a different component the amount of bytes downloaded from the moment the component was started, any idea how this can be done?
The WebBrowserProgressChangedEventArgs.CurrentProgress property can be used to determine the number of bytes downloaded.
Handle the WebBrowserProgressChangedEventArgs event of your web control and use the current progress property to get the number of bytes downloaded...
Quick example...
public long progress = 0;
private void webBrowser1_ProgressChanged(object sender, WebBrowserProgressChangedEventArgs e)
{
progress += e.CurrentProgress;
textBox1.Text = progress.ToString();
}
:)