XtraMessageBoxArgs.HyperlinkClick Event
Fires when a hyperlink is clicked.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v20.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The HyperlinkClick event's data class is DevExpress.Utils.HyperlinkClickEventArgs.
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