System.Windows.Forms.WebBrowser.CanGoForward Property

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

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public bool CanGoForward { 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.GoForward method navigates the System.Windows.Forms.WebBrowser control to the next page in this history, if one is available as a result of a previous backward navigation. If this property is true, the WebBrowser.GoForward method will succeed. Otherwise, calling the WebBrowser.GoForward method will return a value of false and no navigation will occur.

Use the WebBrowser.CanGoForward property to determine whether navigation history is available and contains a page located after the current one, allowing the WebBrowser.GoForward method to succeed.

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

Requirements

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