RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebBrowser.OnDownloadBegin Event

Occurs when the Web browser starts downloading a document.

Pascal
property OnDownloadBegin: TNotifyEvent;
C++
__property TNotifyEvent OnDownloadBegin;

Write an OnDownloadBegin event handler to take specific action after the Web browser has located a document and immediately before it starts downloading the document. For example, use the OnDownloadBegin event to launch an animation control the represents downloading or a progress bar that is updated by an OnProgressChange event handler. The control can then be stopped in an OnDownloadComplete event handler.

Note: To take specific action when the Web browser looks up the resource, rather than when it begins downloading, use the OnBeforeNavigate2 event. OnDownloadBegin occurs shortly after OnBeforeNavigate2.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!