コード例 #1
0
ファイル: ToolTipEx.cs プロジェクト: yzwbrian/winform-ui
 public static void CloseToolTip()
 {
     if (tipForm != null && !tipForm.IsDisposed && tipForm.IsHandleCreated)
     {
         tipForm.Close();
         tipForm = null;
     }
 }
コード例 #2
0
ファイル: ToolTipEx.cs プロジェクト: panshuiqing/winform-ui
 public static void CloseToolTip()
 {
     if (tipForm != null && !tipForm.IsDisposed && tipForm.IsHandleCreated)
     {
         tipForm.Close();
         tipForm = null;
     }
 }
コード例 #3
0
ファイル: ToolTipEx.cs プロジェクト: panshuiqing/winform-ui
 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
ファイル: ToolTipEx.cs プロジェクト: yzwbrian/winform-ui
 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();
 }