public static void CloseToolTip() { if (tipForm != null && !tipForm.IsDisposed && tipForm.IsHandleCreated) { tipForm.Close(); tipForm = null; } }
public static void CloseToolTip() { if (tipForm != null && !tipForm.IsDisposed && tipForm.IsHandleCreated) { tipForm.Close(); tipForm = null; } }
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(); }
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(); }