Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XtraMessageBoxArgs.HyperlinkClick Event

Fires when a hyperlink is clicked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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