예제 #1
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);
 }