187 references to HandleCreated
System.Windows.Forms (10)
System\Windows\Forms\Controls\ImageList\ImageList.cs (5)
211bool recreatingHandle = HandleCreated; // We only need to fire RecreateHandle if there was a previous handle 352Debug.Assert(HandleCreated, "Calling AddIconToHandle when there is no handle"); 371Debug.Assert(HandleCreated, "Calling AddToHandle when there is no handle"); 463if (HandleCreated) 729if (!HandleCreated)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (5)
75Debug.Assert((_owner._originals is null) == (_owner.HandleCreated), " Either we should have the original images, or the handle should be created"); 85if (_owner.HandleCreated) 319if (_owner.HandleCreated) 336if (_owner.HandleCreated) 421if (_owner.HandleCreated)
System.Windows.Forms.Tests (177)
System\Windows\Forms\ButtonBaseTests.cs (1)
2511Assert.False(imageList.HandleCreated);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (85)
62Assert.False(list.HandleCreated); 67Assert.True(list.HandleCreated); 72Assert.True(list.HandleCreated); 77Assert.True(list.HandleCreated); 82Assert.True(list.HandleCreated); 87Assert.True(list.HandleCreated); 115Assert.True(list.HandleCreated); 120Assert.True(list.HandleCreated); 125Assert.True(list.HandleCreated); 130Assert.True(list.HandleCreated); 135Assert.True(list.HandleCreated); 268Assert.True(list.HandleCreated); 290Assert.True(list.HandleCreated); 449Assert.False(list.HandleCreated); 456Assert.False(list.HandleCreated); 462Assert.False(list.HandleCreated); 469Assert.False(list.HandleCreated); 476Assert.False(list.HandleCreated); 494Assert.True(list.HandleCreated); 501Assert.True(list.HandleCreated); 507Assert.True(list.HandleCreated); 514Assert.True(list.HandleCreated); 521Assert.True(list.HandleCreated); 538Assert.False(list.HandleCreated); 545Assert.False(list.HandleCreated); 563Assert.True(list.HandleCreated); 570Assert.True(list.HandleCreated); 607Assert.False(list.HandleCreated); 614Assert.False(list.HandleCreated); 632Assert.True(list.HandleCreated); 639Assert.True(list.HandleCreated); 664Assert.False(list.HandleCreated); 671Assert.False(list.HandleCreated); 677Assert.False(list.HandleCreated); 684Assert.False(list.HandleCreated); 691Assert.False(list.HandleCreated); 709Assert.True(list.HandleCreated); 716Assert.True(list.HandleCreated); 722Assert.True(list.HandleCreated); 729Assert.True(list.HandleCreated); 736Assert.True(list.HandleCreated); 753Assert.False(list.HandleCreated); 760Assert.False(list.HandleCreated); 778Assert.True(list.HandleCreated); 785Assert.True(list.HandleCreated); 826Assert.False(list.HandleCreated); 833Assert.False(list.HandleCreated); 851Assert.True(list.HandleCreated); 858Assert.True(list.HandleCreated); 915Assert.False(list.HandleCreated); 933Assert.True(list.HandleCreated); 978Assert.False(list.HandleCreated); 985Assert.False(list.HandleCreated); 1000Assert.False(list.HandleCreated); 1007Assert.False(list.HandleCreated); 1021Assert.True(list.HandleCreated); 1028Assert.True(list.HandleCreated); 1044Assert.True(list.HandleCreated); 1051Assert.True(list.HandleCreated); 1119Assert.False(list.HandleCreated); 1139Assert.True(list.HandleCreated); 1164Assert.True(list.HandleCreated); 1202Assert.True(list.HandleCreated); 1317Assert.True(list.HandleCreated); 1323Assert.True(list.HandleCreated); 1329Assert.True(list.HandleCreated); 1355Assert.True(list.HandleCreated); 1363Assert.True(list.HandleCreated); 1370Assert.True(list.HandleCreated); 1415Assert.True(list.HandleCreated); 1421Assert.True(list.HandleCreated); 1427Assert.True(list.HandleCreated); 1433Assert.True(list.HandleCreated); 1459Assert.True(list.HandleCreated); 1467Assert.True(list.HandleCreated); 1475Assert.True(list.HandleCreated); 1482Assert.True(list.HandleCreated); 1510Assert.True(list.HandleCreated); 1519Assert.True(list.HandleCreated); 1551Assert.False(list.HandleCreated); 1556Assert.False(list.HandleCreated); 1573Assert.True(list.HandleCreated); 1578Assert.True(list.HandleCreated); 1641Assert.True(list.HandleCreated); 1663Assert.True(list.HandleCreated);
System\Windows\Forms\ImageListTests.cs (81)
27Assert.False(list.HandleCreated); 45Assert.False(list.HandleCreated); 63Assert.False(list.HandleCreated); 68Assert.False(list.HandleCreated); 81Assert.False(list.HandleCreated); 87Assert.False(list.HandleCreated); 93Assert.False(list.HandleCreated); 100Assert.False(list.HandleCreated); 113Assert.True(list.HandleCreated); 118Assert.True(list.HandleCreated); 139Assert.True(list.HandleCreated); 146Assert.True(list.HandleCreated); 153Assert.True(list.HandleCreated); 162Assert.True(list.HandleCreated); 213Assert.True(list.HandleCreated); 244Assert.False(list.HandleCreated); 249Assert.False(list.HandleCreated); 263Assert.False(list.HandleCreated); 269Assert.False(list.HandleCreated); 275Assert.False(list.HandleCreated); 282Assert.False(list.HandleCreated); 294Assert.True(list.HandleCreated); 299Assert.True(list.HandleCreated); 320Assert.True(list.HandleCreated); 327Assert.True(list.HandleCreated); 334Assert.True(list.HandleCreated); 341Assert.True(list.HandleCreated); 348Assert.True(list.HandleCreated); 356Assert.True(list.HandleCreated); 435Assert.False(list.HandleCreated); 464Assert.True(sourceList.HandleCreated); 476Assert.True(list.HandleCreated); 477Assert.True(sourceList.HandleCreated); 485Assert.True(list.HandleCreated); 486Assert.True(sourceList.HandleCreated); 501Assert.True(sourceList.HandleCreated); 503Assert.True(sourceList.HandleCreated); 512Assert.False(list.HandleCreated); 513Assert.True(sourceList.HandleCreated); 537Assert.False(list.HandleCreated); 538Assert.True(sourceList.HandleCreated); 562Assert.True(list.HandleCreated); 563Assert.True(sourceList.HandleCreated); 586Assert.False(list.HandleCreated); 587Assert.False(sourceList.HandleCreated); 610Assert.True(list.HandleCreated); 611Assert.False(sourceList.HandleCreated); 622Assert.False(list.HandleCreated); 628Assert.False(list.HandleCreated); 640Assert.False(list.HandleCreated); 647Assert.False(list.HandleCreated); 684Assert.False(list.HandleCreated); 689Assert.False(list.HandleCreated); 703Assert.False(list.HandleCreated); 709Assert.False(list.HandleCreated); 715Assert.False(list.HandleCreated); 722Assert.False(list.HandleCreated); 734Assert.True(list.HandleCreated); 739Assert.True(list.HandleCreated); 754Assert.True(list.HandleCreated); 760Assert.True(list.HandleCreated); 766Assert.True(list.HandleCreated); 773Assert.True(list.HandleCreated); 820Assert.False(list.HandleCreated); 824Assert.False(list.HandleCreated); 837Assert.False(list.HandleCreated); 840Assert.True(list.HandleCreated); 844Assert.False(list.HandleCreated); 846Assert.False(list.HandleCreated); 860Assert.False(list.HandleCreated); 865Assert.False(list.HandleCreated); 876Assert.False(list.HandleCreated); 880Assert.False(list.HandleCreated); 895Assert.False(list.HandleCreated); 900Assert.False(list.HandleCreated); 933Assert.True(list.HandleCreated); 948Assert.True(list.HandleCreated); 962Assert.True(list.HandleCreated); 977Assert.True(list.HandleCreated); 1000Assert.True(list.HandleCreated); 1015Assert.True(list.HandleCreated);
System\Windows\Forms\TabControlTests.cs (2)
1287Assert.True(imageList.HandleCreated); 1300Assert.True(imageList.HandleCreated);
System\Windows\Forms\TreeViewTests.cs (8)
6052Assert.True(control.ImageList.HandleCreated); 6054Assert.Equal(expectedStateImageListHandleCreated, control.StateImageList.HandleCreated); 6070Assert.True(control.ImageList.HandleCreated); 6072Assert.Equal(expectedStateImageListHandleCreated, control.StateImageList.HandleCreated); 6133Assert.True(control.ImageList.HandleCreated); 6135Assert.Equal(expectedStateImageListHandleCreated, control.StateImageList.HandleCreated); 6151Assert.True(control.ImageList.HandleCreated); 6153Assert.Equal(expectedStateImageListHandleCreated, control.StateImageList.HandleCreated);