Skip to main content
Version: 4.1

WebBrowser

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a web browser control that enables the user to navigate web pages inside a form or a page.

public class WebBrowser : Control

Constructors

Instance member WebBrowser()

Initializes a new instance of the WebBrowser class.

Instance member WebBrowser(url, onDocumentCompleted)

Initializes a new instance of the WebBrowser class with a URL as a string and an event handler for the DocumentCompleted event.

NameTypeDescription
urlStringThe URL of the webpage to be loaded in the WebBrowser as a string.
onDocumentCompletedAction<Object, WebBrowserDocumentCompletedEventArgs>An Action delegate to handle the DocumentCompleted event. Can be null.

Instance member WebBrowser(location, size, onDocumentCompleted)

Initializes a new instance of the WebBrowser class with a specified location and size.

NameTypeDescription
locationPointThe location of the WebBrowser on its parent control.
sizeSizeThe size of the WebBrowser.
onDocumentCompletedAction<Object, WebBrowserDocumentCompletedEventArgs>An Action delegate to handle the DocumentCompleted event. Can be null.

Instance member WebBrowser(url, location, size, onDocumentCompleted)

Initializes a new instance of the WebBrowser class with the specified settings.

NameTypeDescription
urlStringThe URL of the webpage to be loaded in the WebBrowser as a string.
locationPointThe location of the WebBrowser on its parent control.
sizeSizeThe size of the WebBrowser.
onDocumentCompletedAction<Object, WebBrowserDocumentCompletedEventArgs>An Action delegate to handle the DocumentCompleted event. Can be null.

Properties

Instance member BorderStyle

BorderStyle: Indicates the border style for the control. (Default: Solid)

Protected member DefaultSize

Size: The default Size of the control.

Instance member ScrollBarsEnabled

Boolean: Returns or sets a value indicating whether scroll bars are displayed in the WebBrowser control. (Default: True)

Instance member Url

Uri: Returns or sets the URL of the current document. (Default: null)

Throws:

Methods

Instance member GoBack()

Navigates the WebBrowser control to the previous page in the navigation history, if one is available.

Due to IFrame security constraints, this method will not work when the source of the IFrame content is from a different domain.

Instance member GoForward()

Navigates the WebBrowser control to the next page in the navigation history, if one is available.

Due to IFrame security constraints, this method will not work when the source of the IFrame content is from a different domain.

Loads the document at the location indicated by the specified Uri into the WebBrowser control.

ParameterTypeDescription
urlUriA Uri representing the URL of the document to load.

Throws:

Loads the document at the specified Uniform Resource Locator (URL) into the WebBrowser control.

ParameterTypeDescription
urlStringThe URL of the document to load.

Protected member OnDocumentCompleted(e)

Fires the DocumentCompleted event.

ParameterTypeDescription
eWebBrowserDocumentCompletedEventArgsA WebBrowserDocumentCompletedEventArgs that contains the event data.

Protected member OnWebEvent(e)

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Events

Instance member DocumentCompleted

WebBrowserDocumentCompletedEventHandler Fired when the WebBrowser control finishes loading a web page.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.