private void OnOpenSampleForm_Click(object sender, EventArgs e) { using (var f = new SampleForm()) { f.ShowDialog(); } }
/// <summary> /// On specific link click handle it here. /// </summary> private static void OnLinkClicked(object sender, HtmlLinkClickedEventArgs e) { if (e.Link == "SayHello") { MessageBox.Show("Hello you!"); e.Handled = true; } else if (e.Link == "ShowSampleForm") { using (var f = new SampleForm()) { f.ShowDialog(); e.Handled = true; } } }