System.Windows.Forms.LinkLabel.LinkVisited Property

Gets or sets a value indicating whether a link should be displayed as though it were visited.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool LinkVisited { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

A System.Windows.Forms.LinkLabel control does not automatically denote that a link is a visited link. To display the link as a visited link, you can set the value of this property to true in an event handler for the LinkLabel.LinkClicked event of a System.Windows.Forms.LinkLabel. A visited link is displayed using the color specified in the LinkLabel.VisitedLinkColor property of the System.Windows.Forms.LinkLabel control. Once the form containing the System.Windows.Forms.LinkLabel control is closed, the "all display" state associated with the link is deleted. In order to retain the display state of the link, you need to store the display state of the link in a registry setting associated with your application.

Note:

This property only affects the first link defined in the System.Windows.Forms.LinkLabel control. If you have more than one link specified in the control, use the System.Windows.Forms.LinkLabel.Link.Visited property of the System.Windows.Forms.LinkLabel.Link class. You can access all the links defined in the System.Windows.Forms.LinkLabel by using the LinkLabel.Links property.

Requirements

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