/// <include file='doc\ErrorProvider.uex' path='docs/doc[@for="ErrorProvider.ControlItem.AddToWindow"]/*' /> /// <devdoc> /// Add this control's error icon to the error window. /// </devdoc> void AddToWindow() { // if we are recreating the control, then add the control. if (window == null && (control.Created || control.RecreatingHandle) && control.Visible && control.ParentInternal != null && error.Length > 0) { window = provider.EnsureErrorWindow(control.ParentInternal); window.Add(this); // Make sure that we blink if the style is set to AlwaysBlink or BlinkIfDifferrentError if (provider.BlinkStyle != ErrorBlinkStyle.NeverBlink) { StartBlinking(); } } }