All docs
V21.2
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

XtraMessageBoxArgs.HyperlinkClick Event

Fires when a hyperlink is clicked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll

Declaration

public event HyperlinkClickEventHandler HyperlinkClick

Event Data

The HyperlinkClick event's data class is HyperlinkClickEventArgs. The following properties provide information specific to this event:

Property Description
Link Get or sets the URL of the clicked hyperlink.
MouseArgs Gets or sets mouse coordinates calculated from the toolbar’s upper left corner.
Text Gets or sets the hyperlink alt text. Note that modifying this text does not change the item caption.

Remarks

If the AllowHtmlText option is enabled, you can use HTML tags to format the message box text. Handle the HyperlinkClick to respond to a click on a hyperlink. The Link event argument returns the clicked link. The code below shows how to navigate to the clicked link in the default browser.

using DevExpress.XtraEditors;

XtraMessageBoxArgs args = new XtraMessageBoxArgs();
args.AllowHtmlText = DevExpress.Utils.DefaultBoolean.True;
args.Text = "<href=www.devexpress.com>Our web site</href>";
args.HyperlinkClick += (s, e) => { System.Diagnostics.Process.Start(e.Link); };
XtraMessageBox.Show(args);
See Also