This section describes the events associated with the WebBrowser control.
BeforeNavigate2 | Occurs when the WebBrowser control is about to navigate to a different URL, which may happen as a result of external automation, internal automation from a script, or the user clicking a link or typing in the address bar. The container has an opportunity to cancel the pending navigation. |
CommandStateChange | Occurs when the enabled state of a command changes. |
DocumentComplete | Occurs when the document that is being navigated to reaches the READYSTATE_COMPLETE state. |
DownloadBegin | Occurs when a navigation operation is beginning. This event is fired shortly after the BeforeNavigate2 event, unless the navigation is canceled. Any animation or busy indication that the container needs to display should be connected to this event. Note that any DownloadBegin event will have a corresponding DownloadComplete event. |
DownloadComplete | Occurs when a navigation operation finishes, is halted, or fails. |
NavigateComplete2 | Occurs after the browser has successfully navigated to a new location. The document might still be downloading (and in the case of HTML, images may still be downloading), but at least part of the document has been received from the server, and the viewer for the document has been created. |
NewWindow2 | Occurs when a new window is to be created for displaying a resource. Some actions that can cause this include the user shift-clicking on a link, the user right-clicking on a link and choosing open in new window, or a targeted navigation to a frame name that does not yet exist. Your browser application can also trigger this event by calling the Navigate or Navigate2 method with the navOpenInNewWindow flag. The WebBrowser control has an opportunity to handle the new window creation itself. If it does not, a top-level Internet Explorer window is created as a separate (nonhosted) process. |
OnFullScreen | Occurs when the FullScreen property is changed. |
OnMenuBar | Occurs when the MenuBar property is changed. |
OnQuit | Occurs before the Internet Explorer application quits. |
OnStatusBar | Occurs when the StatusBar property is changed. |
OnTheaterMode | Occurs when the TheaterMode property is changed. |
OnToolBar | Occurs when the ToolBar property is changed. |
OnVisible | Occurs when the Visible property is changed. |
ProgressChange | Occurs when the progress of a download operation is updated. |
PropertyChange | Occurs when the PutProperty method changes the value of a property. |
StatusTextChange | Occurs when the status bar text has changed. |
TitleChange | Occurs when the title of a document in the WebBrowser control becomes available or changes. Because the title might change while an HTML page is downloading, the URL of the document is set as the title. After the title specified in the HTML pageif there is oneis parsed, the title is changed to reflect the actual title. |