Category / Section
How to open a link defined in the HTML file that is loaded in WinForms HTMLUI control?
1 min read
LinkClicked event in HTMLUI
We can open a link defined in the HTML file that is loaded in HTMLUI, with default browser using HTMLUI''s LinkClicked event.
C#
private void htmluiControl1_LinkClicked(object sender, Syncfusion.Windows.Forms.HTMLUI.LinkForwardEventArgs e) { Console.WriteLine(e.Path.ToString()); System.Diagnostics.Process.Start(e.Path); e.Cancel = true; }
VB
Private Sub htmluiControl1_LinkClicked(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.HTMLUI.LinkForwardEventArgs) Handles htmluiControl1.LinkClicked Console.WriteLine(e.Path.ToString()) System.Diagnostics.Process.Start(e.Path) e.Cancel = True End Sub