WebBrowser Constructor ()

 

Initializes a new instance of the WebBrowser class.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
WebBrowser()

Exception Condition
NotSupportedException

The WebBrowser control is hosted inside Internet Explorer.

By default, the WebBrowser control is empty. To navigate it to an initial document, set the Url property.

The following code example demonstrates the use of this member.

No code example is currently available or this language may not be supported.

SecurityPermission

for all callers in the call stack to use this constructor. Demand value: Demand; NIB: Named Permission Sets: FullTrust.

SecurityPermission

for immediate callers to use this control. Demand value: LinkDemand; NIB: Named Permission Sets: FullTrust.

.NET Framework
Available since 2.0
Return to top
Show: