9 writes to Icon
System.Windows.Forms (2)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
765private void ResetIcon() => Icon = DefaultIcon;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
459_provider.Icon = new Icon(icon, (int)(icon.Width * factor), (int)(icon.Height * factor));
System.Windows.Forms.Tests (6)
System\Windows\Forms\ErrorProviderTests.cs (6)
544Icon = value 549provider.Icon = value; 561provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon()); 573provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon()); 585Assert.Throws<ArgumentNullException>("value", () => provider.Icon = null); 1336provider.Icon = newIcon;
WinFormsControlsTest (1)
ErrorProviderTest.Designer.cs (1)
47this.errorProvider2.Icon = SystemIcons.Shield;
28 references to Icon
System.Windows.Forms (3)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (2)
590internal IconRegion Region => _region ??= new IconRegion(Icon); 818private bool ShouldSerializeIcon() => Icon != DefaultIcon;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
458using Icon icon = _provider.Icon;
System.Windows.Forms.Tests (25)
System\Windows\Forms\ErrorProviderTests.cs (25)
27Assert.NotNull(provider.Icon); 28Assert.Same(provider.Icon, provider.Icon); 31Assert.Equal(provider.Icon.Width, PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CXSMICON)); 32Assert.Equal(provider.Icon.Height, PInvokeCore.GetSystemMetrics(SYSTEM_METRICS_INDEX.SM_CYSMICON)); 50Assert.NotNull(provider.Icon); 51Assert.Same(provider.Icon, provider.Icon); 77Assert.NotNull(provider.Icon); 78Assert.Same(provider.Icon, provider.Icon); 546Assert.Same(value, provider.Icon); 550Assert.Same(value, provider.Icon); 557PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)]; 569PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.Icon)]; 899Assert.NotNull(provider.Icon); 903Assert.NotNull(provider.Icon); 912Assert.NotNull(provider.Icon); 915Assert.NotNull(provider.Icon); 929Assert.NotNull(provider.Icon); 933Assert.NotNull(provider.Icon); 943Assert.NotNull(provider.Icon); 946Assert.NotNull(provider.Icon); 1330var icon = provider.Icon; 1338Assert.NotNull(provider.Icon);