1 type derived from PictureBox
System.Windows.Forms.Tests (1)
System\Windows\Forms\PictureBoxTests.cs (1)
2840
private class SubPictureBox :
PictureBox
117 instantiations of PictureBox
PresentationUI (5)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
68
this._iconPictureBox = new System.Windows.Forms.
PictureBox
();
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
48
_pictureBox = new System.Windows.Forms.
PictureBox
();
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (3)
44
this._pictureBox1 = new System.Windows.Forms.
PictureBox
();
48
this._pictureBox2 = new System.Windows.Forms.
PictureBox
();
50
this._pictureBox4 = new System.Windows.Forms.
PictureBox
();
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
134
_pictureBox =
new
()
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
59
private readonly PictureBox _pictureBox =
new
();
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
168
PictureBox addNewIcon =
new
()
293
PictureBox addNewIcon =
new
()
System\Windows\Forms\Design\StyleEditorForm.cs (2)
170
_infoPictureBox2 = new
PictureBox
();
171
_infoPictureBox1 = new
PictureBox
();
System.Windows.Forms.Design.Tests (5)
System\Windows\Forms\Design\PictureBoxActionListTests.cs (3)
13
using PictureBox pictureBox =
new
() { SizeMode = PictureBoxSizeMode.StretchImage };
24
using PictureBox pictureBox =
new
();
38
using PictureBox pictureBox =
new
();
System\Windows\Forms\Design\PictureBoxDesignerTests.cs (2)
22
using PictureBox pictureBox =
new
();
38
using PictureBox pictureBox =
new
();
System.Windows.Forms.Tests (93)
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (8)
22
using PictureBox pictureBox =
new
();
33
using PictureBox pictureBox =
new
()
48
using PictureBox pictureBox =
new
()
63
using PictureBox pictureBox =
new
()
80
using PictureBox pictureBox =
new
();
99
using PictureBox pictureBox =
new
()
115
using PictureBox pictureBox =
new
();
142
using PictureBox pictureBox =
new
();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
293
{ new
PictureBox
(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\PictureBoxTests.cs (84)
145
using PictureBox pictureBox =
new
()
160
using PictureBox pictureBox =
new
();
175
using PictureBox pictureBox =
new
();
183
using PictureBox control =
new
()
201
using PictureBox control =
new
()
316
using PictureBox pictureBox =
new
()
333
using PictureBox pictureBox =
new
()
352
using PictureBox pictureBox =
new
();
369
using PictureBox pictureBox =
new
()
390
using PictureBox pictureBox =
new
();
407
using PictureBox pictureBox =
new
();
423
using PictureBox control =
new
()
437
using PictureBox control =
new
();
491
using PictureBox control =
new
();
534
using PictureBox pictureBox =
new
()
549
using PictureBox pictureBox =
new
()
566
using PictureBox pictureBox =
new
();
581
using PictureBox pictureBox =
new
()
600
using PictureBox pictureBox =
new
();
617
using PictureBox pictureBox =
new
();
633
using PictureBox pictureBox =
new
()
653
using PictureBox pictureBox =
new
()
671
using PictureBox pictureBox =
new
();
687
using PictureBox pictureBox =
new
()
719
using PictureBox pictureBox =
new
()
744
using PictureBox pictureBox =
new
()
770
using PictureBox pictureBox =
new
()
790
using PictureBox pictureBox =
new
()
827
using PictureBox pictureBox =
new
()
861
using PictureBox pictureBox =
new
()
886
using PictureBox pictureBox =
new
()
924
using PictureBox control =
new
()
941
using PictureBox control =
new
();
969
using PictureBox control =
new
();
1005
using PictureBox control =
new
();
1013
using PictureBox pictureBox =
new
()
1030
using PictureBox pictureBox =
new
()
1049
using PictureBox pictureBox =
new
();
1066
using PictureBox pictureBox =
new
()
1087
using PictureBox pictureBox =
new
();
1104
using PictureBox pictureBox =
new
();
1127
using PictureBox control =
new
()
1143
using PictureBox control =
new
()
1162
using PictureBox control =
new
()
1179
using PictureBox control =
new
();
1214
using PictureBox control =
new
();
1223
using PictureBox control =
new
()
1239
using PictureBox control =
new
();
1275
using PictureBox control =
new
();
1329
using PictureBox pictureBox =
new
()
1351
using PictureBox pictureBox =
new
()
1390
using PictureBox pictureBox =
new
();
1400
using PictureBox control =
new
()
1416
using PictureBox control =
new
()
1454
using PictureBox control =
new
();
1462
using PictureBox control =
new
()
1484
using PictureBox control =
new
();
1518
using PictureBox control =
new
()
1557
using PictureBox control =
new
()
1574
using PictureBox control =
new
();
1602
using PictureBox control =
new
();
1638
using PictureBox control =
new
()
1657
using PictureBox control =
new
();
1675
using PictureBox control =
new
()
1714
using PictureBox pictureBox =
new
()
1732
using PictureBox pictureBox =
new
();
1741
using PictureBox pictureBox =
new
()
1761
using PictureBox pictureBox =
new
()
1780
using PictureBox pictureBox =
new
()
1802
using PictureBox pictureBox =
new
()
1825
using PictureBox pictureBox =
new
()
1849
using PictureBox pictureBox =
new
();
1857
using PictureBox pictureBox =
new
();
1911
using PictureBox pictureBox =
new
();
1929
using PictureBox pictureBox =
new
()
1947
using PictureBox pictureBox =
new
();
1986
using PictureBox pictureBox =
new
()
2009
using PictureBox pictureBox =
new
()
2042
using PictureBox pictureBox =
new
()
2076
using PictureBox pictureBox =
new
()
2098
using PictureBox pictureBox =
new
()
2118
using PictureBox pictureBox =
new
()
2130
using PictureBox pictureBox =
new
()
2836
using PictureBox control =
new
();
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
962
PictureBoxDragSource = new
PictureBox
();
TestPassApp (1)
CommonControl2.Designer.cs (1)
46
this.pictureBox1 = new System.Windows.Forms.
PictureBox
();
WinFormsControlsTest (6)
DragDrop.Designer.cs (5)
39
pictureBox1 = new
PictureBox
();
40
pictureBox2 = new
PictureBox
();
41
pictureBox3 = new
PictureBox
();
42
pictureBox4 = new
PictureBox
();
43
pictureBox5 = new
PictureBox
();
PictureBoxes.Designer.cs (1)
34
this.pictureBox1 = new System.Windows.Forms.
PictureBox
();
163 references to PictureBox
DesignSurface (2)
MainForm.cs (2)
165
PictureBox
pb1 = surface.CreateControl<
PictureBox
>(new Size(64, 64), new Point(12, 176));
PresentationUI (5)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
782
private System.Windows.Forms.
PictureBox
_iconPictureBox;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
244
private System.Windows.Forms.
PictureBox
_pictureBox;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (3)
244
private System.Windows.Forms.
PictureBox
_pictureBox1;
249
private System.Windows.Forms.
PictureBox
_pictureBox2;
250
private System.Windows.Forms.
PictureBox
_pictureBox4;
System.Windows.Forms (15)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (3)
240
t_defaultErrorImageForThread ??= ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(
PictureBox
), "ImageInError");
295
/// Retrieves the Image that the <see cref="
PictureBox
"/> is currently displaying.
399
t_defaultInitialImageForThread ??= ScaleHelper.GetIconResourceAsDefaultSizeBitmap(typeof(
PictureBox
), "PictureBox.Loading");
System\Windows\Forms\Controls\PictureBox\PictureBox.PictureBoxAccessibleObject.cs (1)
13
public PictureBoxAccessibleObject(
PictureBox
owner) : base(owner)
System\Windows\Forms\Controls\PictureBox\PictureBoxSizeMode.cs (9)
7
/// Specifies how an image is positioned within a <see cref="
PictureBox
"/>.
13
/// <see cref="
PictureBox
"/>. The image is clipped
14
/// if the <see cref="
PictureBox
"/> is to small.
19
/// The image within the <see cref="
PictureBox
"/> is stretched or shrunk to fit the
20
/// current size of the <see cref="
PictureBox
"/>.
25
/// The <see cref="
PictureBox
"/> is sized to fit the
32
/// <see cref="
PictureBox
"/> is larger than the
33
/// image. If the image is larger than the <see cref="
PictureBox
"/>,
35
/// <see cref="
PictureBox
"/> and the outside edges are
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
17
private
PictureBox
_pictureBox;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
59
private readonly
PictureBox
_pictureBox = new();
System.Windows.Forms.Design (10)
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
168
PictureBox
addNewIcon = new()
293
PictureBox
addNewIcon = new()
System\Windows\Forms\Design\PictureBoxActionList.cs (4)
12
private readonly
PictureBox
_pictureBox;
18
_pictureBox = (
PictureBox
)designer.Component;
24
set => TypeDescriptor.GetProperties(_pictureBox)[nameof(
PictureBox
.SizeMode)]!.SetValue(Component, value);
27
public void ChooseImage() => EditorServiceContext.EditValue(_designer, Component!, nameof(
PictureBox
.Image));
System\Windows\Forms\Design\PictureBoxDesigner.cs (2)
67
PictureBox
pictureBox = (
PictureBox
)Component;
System\Windows\Forms\Design\StyleEditorForm.cs (2)
69
private
PictureBox
_infoPictureBox1;
70
private
PictureBox
_infoPictureBox2;
System.Windows.Forms.Design.Tests (5)
System\Windows\Forms\Design\PictureBoxActionListTests.cs (3)
13
using
PictureBox
pictureBox = new() { SizeMode = PictureBoxSizeMode.StretchImage };
24
using
PictureBox
pictureBox = new();
38
using
PictureBox
pictureBox = new();
System\Windows\Forms\Design\PictureBoxDesignerTests.cs (2)
22
using
PictureBox
pictureBox = new();
38
using
PictureBox
pictureBox = new();
System.Windows.Forms.Tests (112)
System\Windows\Forms\AccessibleObjects\PictureBox.PictureBoxAccessibleObjectTests.cs (16)
16
Assert.Throws<ArgumentNullException>("ownerControl", () => new
PictureBox
.PictureBoxAccessibleObject(null));
22
using
PictureBox
pictureBox = new();
24
var pictureBoxAccessibleObject = new
PictureBox
.PictureBoxAccessibleObject(pictureBox);
33
using
PictureBox
pictureBox = new()
39
var pictureBoxAccessibleObject = new
PictureBox
.PictureBoxAccessibleObject(pictureBox);
48
using
PictureBox
pictureBox = new()
54
var pictureBoxAccessibleObject = new
PictureBox
.PictureBoxAccessibleObject(pictureBox);
63
using
PictureBox
pictureBox = new()
69
var pictureBoxAccessibleObject = new
PictureBox
.PictureBoxAccessibleObject(pictureBox);
80
using
PictureBox
pictureBox = new();
87
var pictureBoxAccessibleObject = new
PictureBox
.PictureBoxAccessibleObject(pictureBox);
99
using
PictureBox
pictureBox = new()
105
PictureBox
.PictureBoxAccessibleObject pictureBoxAccessibleObject = new(pictureBox);
115
using
PictureBox
pictureBox = new();
117
var pictureBoxAccessibleObject = new
PictureBox
.PictureBoxAccessibleObject(pictureBox);
142
using
PictureBox
pictureBox = new();
System\Windows\Forms\PictureBoxTests.cs (96)
145
using
PictureBox
pictureBox = new()
160
using
PictureBox
pictureBox = new();
175
using
PictureBox
pictureBox = new();
183
using
PictureBox
control = new()
201
using
PictureBox
control = new()
316
using
PictureBox
pictureBox = new()
333
using
PictureBox
pictureBox = new()
352
using
PictureBox
pictureBox = new();
369
using
PictureBox
pictureBox = new()
389
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
PictureBox
))[nameof(
PictureBox
.ErrorImage)];
390
using
PictureBox
pictureBox = new();
406
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
PictureBox
))[nameof(
PictureBox
.ErrorImage)];
407
using
PictureBox
pictureBox = new();
423
using
PictureBox
control = new()
437
using
PictureBox
control = new();
491
using
PictureBox
control = new();
534
using
PictureBox
pictureBox = new()
549
using
PictureBox
pictureBox = new()
566
using
PictureBox
pictureBox = new();
581
using
PictureBox
pictureBox = new()
599
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
PictureBox
))[nameof(
PictureBox
.Image)];
600
using
PictureBox
pictureBox = new();
616
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
PictureBox
))[nameof(
PictureBox
.Image)];
617
using
PictureBox
pictureBox = new();
633
using
PictureBox
pictureBox = new()
653
using
PictureBox
pictureBox = new()
671
using
PictureBox
pictureBox = new();
687
using
PictureBox
pictureBox = new()
719
using
PictureBox
pictureBox = new()
744
using
PictureBox
pictureBox = new()
770
using
PictureBox
pictureBox = new()
790
using
PictureBox
pictureBox = new()
827
using
PictureBox
pictureBox = new()
861
using
PictureBox
pictureBox = new()
886
using
PictureBox
pictureBox = new()
924
using
PictureBox
control = new()
941
using
PictureBox
control = new();
969
using
PictureBox
control = new();
1005
using
PictureBox
control = new();
1013
using
PictureBox
pictureBox = new()
1030
using
PictureBox
pictureBox = new()
1049
using
PictureBox
pictureBox = new();
1066
using
PictureBox
pictureBox = new()
1086
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
PictureBox
))[nameof(
PictureBox
.InitialImage)];
1087
using
PictureBox
pictureBox = new();
1103
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(
PictureBox
))[nameof(
PictureBox
.InitialImage)];
1104
using
PictureBox
pictureBox = new();
1127
using
PictureBox
control = new()
1143
using
PictureBox
control = new()
1162
using
PictureBox
control = new()
1179
using
PictureBox
control = new();
1214
using
PictureBox
control = new();
1223
using
PictureBox
control = new()
1239
using
PictureBox
control = new();
1275
using
PictureBox
control = new();
1329
using
PictureBox
pictureBox = new()
1351
using
PictureBox
pictureBox = new()
1390
using
PictureBox
pictureBox = new();
1400
using
PictureBox
control = new()
1416
using
PictureBox
control = new()
1454
using
PictureBox
control = new();
1462
using
PictureBox
control = new()
1484
using
PictureBox
control = new();
1518
using
PictureBox
control = new()
1557
using
PictureBox
control = new()
1574
using
PictureBox
control = new();
1602
using
PictureBox
control = new();
1638
using
PictureBox
control = new()
1657
using
PictureBox
control = new();
1675
using
PictureBox
control = new()
1714
using
PictureBox
pictureBox = new()
1732
using
PictureBox
pictureBox = new();
1741
using
PictureBox
pictureBox = new()
1761
using
PictureBox
pictureBox = new()
1780
using
PictureBox
pictureBox = new()
1802
using
PictureBox
pictureBox = new()
1825
using
PictureBox
pictureBox = new()
1849
using
PictureBox
pictureBox = new();
1857
using
PictureBox
pictureBox = new();
1911
using
PictureBox
pictureBox = new();
1929
using
PictureBox
pictureBox = new()
1947
using
PictureBox
pictureBox = new();
1986
using
PictureBox
pictureBox = new()
2009
using
PictureBox
pictureBox = new()
2042
using
PictureBox
pictureBox = new()
2076
using
PictureBox
pictureBox = new()
2098
using
PictureBox
pictureBox = new()
2118
using
PictureBox
pictureBox = new()
2130
using
PictureBox
pictureBox = new()
2836
using
PictureBox
control = new();
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
955
public
PictureBox
PictureBoxDragSource;
TestPassApp (1)
CommonControl2.Designer.cs (1)
292
private System.Windows.Forms.
PictureBox
pictureBox1;
WinFormsControlsTest (12)
DragDrop.cs (6)
23
private readonly List<
PictureBox
> _pictureBoxList;
107
if (sender is not
PictureBox
pictureBox || e.Data is null)
157
if (sender is
PictureBox
pictureBox && e.Data is not null)
176
if (sender is
PictureBox
pictureBox)
357
private void LoadCat(
PictureBox
pictureBox, Bitmap image)
362
private void LoadCats(
PictureBox
pictureBox, string[] bitmapFiles)
DragDrop.Designer.cs (5)
217
private System.Windows.Forms.
PictureBox
pictureBox1;
218
private System.Windows.Forms.
PictureBox
pictureBox2;
219
private System.Windows.Forms.
PictureBox
pictureBox3;
220
private System.Windows.Forms.
PictureBox
pictureBox4;
221
private System.Windows.Forms.
PictureBox
pictureBox5;
PictureBoxes.Designer.cs (1)
98
private System.Windows.Forms.
PictureBox
pictureBox1;