예제 #1
0
 public static void CloseToolTip()
 {
     if (tipForm != null && !tipForm.IsDisposed && tipForm.IsHandleCreated)
     {
         tipForm.Close();
         tipForm = null;
     }
 }
예제 #2
0
 public static void CloseToolTip()
 {
     if (tipForm != null && !tipForm.IsDisposed && tipForm.IsHandleCreated)
     {
         tipForm.Close();
         tipForm = null;
     }
 }
예제 #3
0
 public static void ShowToolTip(string text, Control control, int duration)
 {
     if (control == null) throw new ArgumentNullException("control");
     CloseToolTip();
     tipForm = new ToolTipForm();
     timerDuration = duration;
     tipForm.Show(text, control);
     SetTimer();
 }
예제 #4
0
 public static void ShowToolTip(string text, Control control, int duration)
 {
     if (control == null)
     {
         throw new ArgumentNullException("control");
     }
     CloseToolTip();
     tipForm       = new ToolTipForm();
     timerDuration = duration;
     tipForm.Show(text, control);
     SetTimer();
 }