System.Windows.Forms.WebBrowser.CanGoBack Property

Gets a value indicating whether a previous page in navigation history is available, which allows the WebBrowser.GoBack method to succeed.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public bool CanGoBack { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The System.Windows.Forms.WebBrowser control maintains a history list of all the Web pages visited during a browsing session. The WebBrowser.GoBack method navigates the System.Windows.Forms.WebBrowser control to the previous page in this history, if one is available. Use the WebBrowser.CanGoBack property to determine whether navigation history is available and contains a previous page. If this property is true, the WebBrowser.GoBack method will succeed. Otherwise, calling the WebBrowser.GoBack method will return a value of false and no navigation will occur.

You can also handle the WebBrowser.CanGoBackChanged event to receive a notification when the WebBrowser.CanGoBack property changes. Handling this event is useful, for example, to change the enabled state of a Back button when the System.Windows.Forms.WebBrowser control navigates to or leaves the beginning of the navigation history.

Requirements

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