The new KryptonLinkLabel control is derived from the existing KryptonLabel and adds the ability to act as a hyperlink.

KryptonLinkLabel

The control is very simple and alters the appearance of the short text so it becomes a hyperlink that can be clicked in order to generate a LinkClicked event. Here you can see the control in the normal, tracking and pressed states.

Only the short text is turned into a hyperlink, the long text and image operate in exactly the same static way as the standard KryptonLabel control. You can see proof of that here.

Another change from the existing KryptonLabel control is the ability to take the focus. When you click the control it will automatically take the focus, you can see the focus rectangle in the above examples, as well as take part in standard tab ordering behavior. The user can use the Enter key to press the link when using the keyboard interface.

The control is not intended to mimic all the functionality of the standard LinkLabel that comes with windows forms. So you cannot have multiple link areas within the text. It should however have enough functionality to meet the needs of most hyperlink scenarios.

Leave a Reply