WebBrowser.AllowNavigation Property


Gets or sets a value indicating whether the control can navigate to another page after its initial page has been loaded.

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

public bool AllowNavigation { get; set; }

Property Value

Type: System.Boolean

true if the control can navigate to another page; otherwise, false.

This property does not prevent you from loading an initial page by setting the Url, DocumentText or DocumentStream property, but will prevent all subsequent navigation.


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

.NET Framework
Available since 2.0
Return to top