System.Windows.Forms.ToolTip.RemoveAll C# (CSharp) Method

RemoveAll() public method

public RemoveAll ( ) : void
return void
		public void RemoveAll() {
			tooltip_strings.Clear();
			//UIA Framework: ToolTip isn't associated anymore
			foreach (Control control in controls)
				OnUIAToolTipUnhookUp (this, new ControlEventArgs (control));

			controls.Clear();
		}

Usage Example

Example #1
0
 public void SetText(string text)
 {
     if (IsDiff(_toolTipText, text))
     {
         _toolTipText = text;
         if (_toolTipText == null)
         {
             _toolTip.RemoveAll();
         }
         else if (_toolTipText.Length == 0)
         {
             _toolTip.RemoveAll();
         }
         else
         {
             /* update the hover text and rearm the delay so we
              * hover as long as the API will allow */
             _toolTip.SetToolTip(_control, _toolTipText);
             _toolTip.AutoPopDelay = 32767;
         }
     }
     else
     {
         /* nothing to do */
     }
 }
All Usage Examples Of System.Windows.Forms.ToolTip::RemoveAll