Bloom.ToPalaso.BetterToolTip.SetToolTip C# (CSharp) Method

SetToolTip() public method

public SetToolTip ( Control control, string value ) : void
control System.Windows.Forms.Control
value string
return void
        public new void SetToolTip(Control control, string value)
        {
            if (control == null)
            {
                throw new ArgumentNullException("control");
            }

            UpdateAllControlsList(control, value);
            Guard.AgainstNull(control, "control");
            //No: this can be null, it's OK: Guard.AgainstNull(value,"value");
            try
            {
                base.SetToolTip(control, value);
            }
            catch (NullReferenceException)
            {
            #if DEBUG
                Debug.Fail("Debug Only: If you just changed the UI language, this is a BL-937 Reproduction");
            #endif
                //for the user, swallow
            }
        }