public static void HideBalloonTip(this BalloonTip balloonTip, Control control = null) { if (control != null) { balloonTip.Remove(control); } else { balloonTip.RemoveAll(); } }
public static bool ShowMessage(Image image, string textMessage, Control control) { tooltipshow.CloseBalloon(); tooltipshow.RemoveAll(); if (!(image is null)) { tooltipshow.CaptionImage = image; } tooltipshow.SetBalloonText(control, textMessage); tooltipshow.ShowBalloonOnFocus = true; tooltipshow.ShowBalloon(control); tooltipshow.RemoveAll(); try { control.Focus(); } catch { } return(true); }