private void OnLinkLabelMouseMove(object sender, MouseEventArgs e) { var delay = TimeSpan.FromMilliseconds(LinkToolTip.InitialDelay); if (DateTime.Now > TooltipShown + delay) { LinkToolTip.Hide(this); } }
private void OnLinkHover(object sender, LinkHoverEventArgs e) { var url = e.Link.LinkData as string; if (string.IsNullOrEmpty(url)) { return; } else if (url.StartsWith("http://", StringComparison.Ordinal) || url.StartsWith("https://", StringComparison.Ordinal)) { LinkToolTip.Show(url, this, PointToClient(MousePosition)); TooltipShown = DateTime.Now; } }
private void OnLinkLabelMouseLeave(object sender, EventArgs e) { LinkToolTip.Hide(this); }
private void AboutForm_Load(object sender, EventArgs e) => LinkToolTip.SetToolTip(GithubLabel, $"https://github.com/midare160/{Application.ProductName}");