WebBrowserArray.ProgressChanged 事件

定義

發生於 WebBrowser 控制項具有所巡覽之文件下載進度的更新資訊時。Occurs when the WebBrowser control has updated information about the download progress of a document that it is navigating to.

public:
 event System::Windows::Forms::WebBrowserProgressChangedEventHandler ^ ProgressChanged;
public event System.Windows.Forms.WebBrowserProgressChangedEventHandler ProgressChanged;
member this.ProgressChanged : System.Windows.Forms.WebBrowserProgressChangedEventHandler 
Public Event ProgressChanged As WebBrowserProgressChangedEventHandler 

備註

您可以使用此事件的處理常式來執行類似 Internet Explorer 中的導覽進度列。You can use a handler for this event to implement a navigation progress bar similar to the one in Internet Explorer. 使用 [CurrentProgress] 屬性來判斷已成功下載的位元組數目。Use the CurrentProgress property to determine the number of bytes that have been downloaded successfully. 使用 [MaximumProgress] 屬性來判斷可供下載的位元組總數。Use the MaximumProgress property to determine the total number of bytes available for downloading.

如需如何處理事件的詳細資訊,請參閱處理和引發事件For more information about how to handle events, see Handling and Raising Events.

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. 在大多數情況下,這些函式和物件會複製在 .NET Framework.NET Framework 的其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework.NET Framework 實作有顯著差異時,才需要這些項目。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.

適用於