예제 #1
0
 public static void HideBalloonTip(this BalloonTip balloonTip, Control control = null)
 {
     if (control != null)
     {
         balloonTip.Remove(control);
     }
     else
     {
         balloonTip.RemoveAll();
     }
 }
예제 #2
0
 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);
 }