Linklabel Control in VB.NET
LinkLabel Control is designed such that it provides the functionality of Hyperlink in window application.
It is derived from label Control so it also provides all the functionality of Label control.
Properties of Linklabel Control in VB.NET
| Property | Purpose | ||||||
LinkColor |
It is used to get or set Fore color of the Hyperlink in its default state. |
||||||
ActiveLinkColor |
It is used to get or set Fore color of the Hyperlink when user clicks it. |
||||||
DisabledLinkColor |
It is used to get or set Fore color of the Hyperlink when LinkLabel is disabled. |
||||||
VisitedLinkColor |
It is used to get or set Fore color of the Hyperlink when LinkVisited property of LinkLabel is set to true. |
||||||
LinkVisited |
It is used to specify weather Hyperlink is already visited or not. It has Boolean value. Default value is false. |
||||||
Text |
It is used to get or set text associated with LinkLabel Control. |
||||||
TextAlign |
It is used to get or set alignment of the text associated with LinkLabel Control. |
||||||
ForeColor |
It is used to get or set Fore Color of the text associated with LinkLabel Control. |
||||||
BackColor |
It is used to get or set Background color of the LinkLabel Control. |
||||||
Enabled |
It is used to specify weather LinkLabel control is enabled or not at runtime. It has Boolean value true or false. Default value is true. |
||||||
Visible |
It is used to specify weather LinkLabel control is visible or not at runtime. It has Boolean value true or false. Default value is true. |
||||||
Methods of Linklabel Control in VB.NET
| Method | Purpose |
Show |
It is used to Show LinkLabel Control at runtime. |
Hide |
It is used to Hide LinkLabel Control at runtime. |
Focus |
It is used to set input focus on LinkLabel Control. |
Events of Linklabel Control in VB.NET
| Event | Purpose |
Link Clicked |
It is the default event of LinkLabel Control. It fires each time a user click on a hyperlink of LinkLabel Control. |