Skip to content

WebBrowser Control Members

See Also

WebBrowser Overview

See Also

Suite Pro Controls ActiveX Control v24.0

WebBrowser Control Members

Public Methods

Method Description
Public MethodAboutBox Displays the about box for the control.
Public MethodExecuteScript Executes a command on an OLE object and returns the status of the command execution using the IOleCommandTarget interface.
Public MethodExecWB A
Public MethodGoBack Navigates back one item in the history list.
Public MethodGoForward Navigates forward one item in the history list.
Public MethodGoHome Navigates to the current home or start page.
Public MethodGoSearch Navigates to the current search page.
Public MethodLoadHtml Navigates to a resource identified by a URL or to the file identified by a full path.
Public MethodNavigate Reloads the file that is currently displayed in the object.
Public MethodReCreateProvider Reloads the file that is currently displayed in the object.
Public MethodRefresh Gets or sets an object that can be accessed by scripting code that is contained within a Web page displayed in the WebBrowser control.
Public MethodRefresh2 Cancels any pending navigation or download operation and stops any dynamic page elements, such as background sounds and animations.
Public MethodSetObjectForScripting WebBrowser control.
Public MethodSetProperty
Public MethodStop
Public MethodWaitUntilReady

Public Properties

Property Description
Public PropertyAppearance Gets or sets the paint style of the control.
Public PropertyApplication Retrieves the automation object for an application that is hosting the WebBrowser Control.
Public PropertyBackColor Gets or sets the background color of the control.
Public PropertyBusy Boolean value indicating whether the object is engaged in a navigation or downloading operation.
Public PropertyDocument Retrieves the automation object of the active document, if any.
Public PropertyFont Gets/Sets the font that will be used to display the text for the control.
Public PropertyInnerHTML Gets or sets HTML text that is stored internally inside the browser control. You can load a default page this way without creating an external HTML page or navigating to a page on the internet.
Public PropertyLocationName Retrieves the name of the resource that Microsoft® Internet Explorer is currently displaying.
Public PropertyLocationURL Retrieves the URL of the resource that Microsoft® Internet Explorer is currently displaying.
Public PropertyOffline Boolean value that indicates whether the object is currently operating in offline mode.
Public PropertyProvider
Public PropertyProviderType
Public PropertyReadyState Retrieves the ready state of the object.
Public PropertyReCreateReparented
Public PropertyRegisterAsDropTarget Sets or gets a value that indicates whether the object is registered as a drop target for navigation.
Public PropertyScriptErrorsSuppressed Gets or sets a value indicating whether the WebBrowser control displays error dialogs for script errors.
Public PropertyScrollBarStyle Gets or sets the scrollbar style used in the WebBrowser control.
Public PropertySilent Sets or retrieves a value that indicates whether the object can show dialog boxes.
Public PropertyStaticText Gets or sets whether the page is shown as a static label (cannot select text).
Public PropertyWebBrowserContextMenu Gets or sets whether the default Explorer Context menu will be displayed when the user right clicks in the browser control.

Events

Event Description
Public EventBeforeNavigate2 Fires before a navigation occurs in the given object (on either a window or frameset element).
Public EventCommandStateChange Fires when the enabled state of a command changes.
Public EventDocumentComplete Fires when a document has been completely loaded and initialized.
Public EventDownloadBegin Fires when a navigation operation is beginning.
Public EventDownloadComplete Fires when a navigation operation finishes, is halted, or fails.
Public EventNavigateComplete2 Fires after a navigation to a link is completed on either a window or frameSet element.
Public EventNavigateError Fires when an error occurs during navigation.
Public EventNewWindow2 Fires when a new window is to be created.
Public EventOnQuit Occurs before the Internet Explorer application quits.
Public EventProgressChange Fires when the progress of a download operation is updated on the object.
Public EventReCreated Fired to indicate the security level of the current web page contents.
Public EventSetSecureLockIcon Fires when the status bar text of the object has changed.
Public EventStatusTextChange Fires when the title of a document in the object becomes available or changes.
Public EventTitleChange
Public EventWebView2ContainsFullScreenElementChanged
Public EventWebView2ContentLoading
Public EventWebView2DocumentTitleChanged
Public EventWebView2FrameNavigationCompleted
Public EventWebView2FrameNavigationStarting
Public EventWebView2HistoryChanged
Public EventWebView2NavigationCompleted
Public EventWebView2NavigationStarting
Public EventWebView2NewWindowRequested
Public EventWebView2PermissionRequested
Public EventWebView2ProcessFailed
Public EventWebView2ScriptDialogOpening
Public EventWebView2SourceChanged
Public EventWebView2WindowCloseRequested Fired when the WebBrowser is about to be closed by script.
Public EventWindowClosing Fired when the host window should change its height.
Public EventWindowSetHeight Fired when the host window should change its Left coordinate.
Public EventWindowSetLeft Fired when the host window should allow/disallow resizing.
Public EventWindowSetResizable Fired when the host window should change its Top coordinate.
Public EventWindowSetTop Fired when the host window should change its width.
Public EventWindowSetWidth

See Also

WebBrowser Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.