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