private void ResolverList_MouseDown(object sender, MouseEventArgs e) { var MouseEvent = e as MouseEventArgs; var Result = ResolverList.HitTest(MouseEvent.X, MouseEvent.Y); if (Result.SubItem != null) { if (Result.SubItem.Text.StartsWith("http")) { System.Diagnostics.Process.Start(Result.SubItem.Text); } } }
private void ResolverList_MouseMove(object sender, MouseEventArgs e) { var MouseEvent = e as MouseEventArgs; var Result = ResolverList.HitTest(MouseEvent.X, MouseEvent.Y); if (Result.SubItem != null) { if (Result.SubItem.Text.StartsWith("http://") || Result.SubItem.Text.StartsWith("https://")) { ResolverList.Cursor = Cursors.Hand; } else { ResolverList.Cursor = Cursors.Default; } } }