InPlaceHostingManager.DownloadProgressChanged Event

Occurs when there is a change in the status of an application or manifest download.

Namespace: System.Deployment.Application
Assembly: System.Deployment (in system.deployment.dll)

public event EventHandler<DownloadProgressChangedEventArgs> DownloadProgressChanged
/** @event */
public void add_DownloadProgressChanged (EventHandler<DownloadProgressChangedEventArgs> value)

/** @event */
public void remove_DownloadProgressChanged (EventHandler<DownloadProgressChangedEventArgs> value)

In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.

In a console application, events are assigned to threads from a thread pool. Therefore, you might receive progress update events out of order, with a subsequent event showing a decrease compared with a previous event. You will not see such behavior in a Windows Forms-based application, because events in Windows Forms are processed sequentially out of the user interface (UI) thread's message queue.

The following code example demonstrates how to update a ToolStripProgressBar that is contained within a StatusStrip.

void iphm_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
    toolStripProgressBar1.ProgressBar.Value = e.ProgressPercentage;

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions