126 writes to DropDownStyle
Accessibility_Core_App (1)
CommonControl1.Designer.cs (1)
318
this.comboBox2.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.Simple;
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
177
this.comboBoxTemplates.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.DropDownList;
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1274
comboBox.
DropDownStyle
= ComboBoxStyle.DropDownList;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
161
set { ComboBox.
DropDownStyle
= value; }
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
433
_columnTypesCombo.
DropDownStyle
= ComboBoxStyle.DropDownList;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
194
_keyComboBox.
DropDownStyle
= ComboBoxStyle.DropDownList;
System\Windows\Forms\Design\StyleEditorForm.cs (1)
294
_columnsOrRowsComboBox.
DropDownStyle
= ComboBoxStyle.DropDownList;
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
446
DropDownStyle
= ComboBoxStyle.DropDown
System.Windows.Forms.Tests (107)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (11)
36
DropDownStyle
= comboBoxStyle
59
DropDownStyle
= comboBoxStyle
85
DropDownStyle
= comboBoxStyle
149
DropDownStyle
= comboBoxStyle
185
DropDownStyle
= comboBoxStyle
212
DropDownStyle
= comboBoxStyle
327
using ComboBox comboBox = new() {
DropDownStyle
= ComboBoxStyle.Simple };
346
using ComboBox comboBox = new() {
DropDownStyle
= style };
358
using ComboBox comboBox = new() {
DropDownStyle
= style };
382
using ComboBox comboBox = new() {
DropDownStyle
= ComboBoxStyle.Simple };
400
using ComboBox comboBox = new() {
DropDownStyle
= style };
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (7)
89
DropDownStyle
= comboBoxStyle
128
DropDownStyle
= comboBoxStyle
246
comboBox.
DropDownStyle
= comboBoxStyle;
295
comboBox.
DropDownStyle
= comboBoxStyle;
386
comboBox.
DropDownStyle
= comboBoxStyle;
448
comboBox.
DropDownStyle
= comboBoxStyle;
655
DropDownStyle
= comboBoxStyle
System\Windows\Forms\Application.ParkingWindowTests.cs (2)
42
DropDownStyle
= ComboBoxStyle.DropDown
52
comboBox.
DropDownStyle
= ComboBoxStyle.DropDownList;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (4)
39
DropDownStyle
= comboBoxStyle
64
DropDownStyle
= comboBoxStyle
93
DropDownStyle
= comboBoxStyle
110
DropDownStyle
= comboBoxStyle
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (5)
42
DropDownStyle
= comboBoxStyle
88
DropDownStyle
= comboBoxStyle
115
DropDownStyle
= comboBoxStyle
131
DropDownStyle
= comboBoxStyle
147
DropDownStyle
= comboBoxStyle
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (3)
34
DropDownStyle
= comboBoxStyle
63
DropDownStyle
= comboBoxStyle
99
DropDownStyle
= comboBoxStyle,
System\Windows\Forms\ComboBox.ComboBoxChildNativeWindowTests.cs (1)
11
using ComboBox comboBox = new() {
DropDownStyle
= ComboBoxStyle.DropDown };
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (2)
29
DropDownStyle
= ComboBoxStyle.DropDownList
54
DropDownStyle
= ComboBoxStyle.DropDownList
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (53)
20
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
45
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
61
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
75
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
91
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
107
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
123
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, RightToLeft = rightToLeft };
141
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, RightToLeft = rightToLeft };
157
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
177
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
190
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
205
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
225
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
245
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
259
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
283
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(width, height) };
307
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(width, height) };
345
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(width, height) };
368
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(width, height) };
388
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
408
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
434
using ComboBox comboBox = new() { Size = size,
DropDownStyle
= dropdownStyle };
463
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
500
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
540
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
574
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
592
using ComboBox comboBox = new ComboBox() {
DropDownStyle
= dropDownStyle, Size = new Size(250, 100) };
623
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
643
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
660
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
677
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
693
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
709
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
725
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
745
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
779
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
821
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
847
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
867
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = size };
888
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
912
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
930
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
949
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
980
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
1010
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle };
1041
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(50, 100) };
1062
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(50, 100) };
1079
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(50, 100) };
1098
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(50, 100) };
1111
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(50, 100) };
1125
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(50, 100) };
1149
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(width, height) };
1170
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(50, 100) };
System\Windows\Forms\ComboBoxTests.cs (19)
462
control.
DropDownStyle
= ComboBoxStyle.DropDownList;
477
control.
DropDownStyle
= ComboBoxStyle.DropDown;
488
control.
DropDownStyle
= ComboBoxStyle.DropDownList;
826
DropDownStyle
= value
832
control.
DropDownStyle
= value;
858
DropDownStyle
= value
866
control.
DropDownStyle
= value;
899
control.
DropDownStyle
= ComboBoxStyle.DropDownList;
902
control.
DropDownStyle
= ComboBoxStyle.Simple;
906
control.
DropDownStyle
= ComboBoxStyle.DropDownList;
925
control.
DropDownStyle
= value;
933
control.
DropDownStyle
= value;
955
control.
DropDownStyle
= ComboBoxStyle.DropDownList;
960
control.
DropDownStyle
= ComboBoxStyle.DropDownList;
965
control.
DropDownStyle
= ComboBoxStyle.Simple;
971
control.
DropDownStyle
= ComboBoxStyle.DropDownList;
981
Assert.Throws<InvalidEnumArgumentException>("value", () => control.
DropDownStyle
= value);
2155
using ComboBox comboBox = new() {
DropDownStyle
= dropDownStyle, Size = new(100, 50) };
2735
comboBox.
DropDownStyle
= ComboBoxStyle.Simple;
WinFormsControlsTest (11)
ComboBoxes.Designer.cs (9)
67
this.comboBox2.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.DropDownList;
106
this.comboBox4.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.DropDownList;
131
this.comboBox6.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.DropDownList;
156
this.comboBox8.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.DropDownList;
169
this.comboBox9.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.Simple;
182
this.comboBox10.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.Simple;
195
this.comboBox11.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.Simple;
209
this.comboBox12.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.Simple;
229
this.dataBoundComboBox.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.Simple;
ComboBoxesWithScrollBars.Designer.cs (2)
83
this.comboBox2.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.Simple;
95
this.comboBox3.
DropDownStyle
= System.Windows.Forms.ComboBoxStyle.DropDownList;
65 references to DropDownStyle
System.Windows.Forms (50)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (5)
43
? owner.
DropDownStyle
!= ComboBoxStyle.Simple
101
if (!owner.IsHandleCreated || owner.
DropDownStyle
== ComboBoxStyle.Simple)
225
return owner?.
DropDownStyle
switch
235
this.TryGetOwnerAs(out ComboBox? owner) && owner.
DropDownStyle
== ComboBoxStyle.Simple
241
if (!this.IsOwnerHandleCreated(out ComboBox? owner) || owner.
DropDownStyle
== ComboBoxStyle.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
63
_owner.
DropDownStyle
== ComboBoxStyle.DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
56
=> _owningComboBox.
DropDownStyle
!= ComboBoxStyle.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (2)
86
return _owningComboBox.
DropDownStyle
== ComboBoxStyle.DropDownList
91
return _owningComboBox.
DropDownStyle
== ComboBoxStyle.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (38)
147
if (
DropDownStyle
== ComboBoxStyle.DropDownList
189
if (
DropDownStyle
== ComboBoxStyle.DropDownList
309
new ComboBoxChildListUiaProvider(this,
DropDownStyle
== ComboBoxStyle.Simple ? _childListBox!.HWND : _dropDownHandle);
342
switch (
DropDownStyle
)
789
if (
DropDownStyle
== ComboBoxStyle.Simple)
948
get =>
DropDownStyle
== ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength);
951
if (
DropDownStyle
!= ComboBoxStyle.DropDownList)
1047
if (
DropDownStyle
== value)
1106
if (
DropDownStyle
== ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1)
1206
return ((_autoCompleteMode != AutoCompleteMode.None) && (
DropDownStyle
!= ComboBoxStyle.DropDownList));
1395
if (
DropDownStyle
== ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle)
1414
if (
DropDownStyle
== ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle)
1454
if (
DropDownStyle
== ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle)
1479
if (
DropDownStyle
== ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle)
1928
if (
DropDownStyle
is ComboBoxStyle.DropDown
1976
return
DropDownStyle
== ComboBoxStyle.Simple ? new(_childListBox) : new(this, _dropDownHandle);
1981
return
DropDownStyle
== ComboBoxStyle.Simple ? _childListBox! : _childDropDown!;
2171
if (
DropDownStyle
!= ComboBoxStyle.DropDownList)
2233
if (
DropDownStyle
== ComboBoxStyle.DropDownList && SelectedIndex == index)
2283
if (ok &&
DropDownStyle
!= ComboBoxStyle.DropDownList)
2289
if (
DropDownStyle
== ComboBoxStyle.Simple)
2320
if (
DropDownStyle
== ComboBoxStyle.Simple)
2596
&& (
DropDownStyle
== ComboBoxStyle.DropDownList ||
DropDownStyle
== ComboBoxStyle.DropDown))
2664
if (
DropDownStyle
== ComboBoxStyle.Simple)
2744
&&
DropDownStyle
== ComboBoxStyle.DropDownList)
2803
if (
DropDownStyle
== ComboBoxStyle.Simple && recreate)
2823
if (
DropDownStyle
== ComboBoxStyle.Simple && IsHandleCreated)
2882
if (
DropDownStyle
== ComboBoxStyle.DropDown)
2889
if (
DropDownStyle
== ComboBoxStyle.DropDownList)
2939
if (
DropDownStyle
!= ComboBoxStyle.DropDownList
2965
&&
DropDownStyle
== ComboBoxStyle.DropDownList
3171
if (
DropDownStyle
== ComboBoxStyle.DropDownList)
3174
Debug.Assert(
DropDownStyle
== ComboBoxStyle.DropDownList);
3262
if ((specified & BoundsSpecified.Height) != BoundsSpecified.None &&
DropDownStyle
== ComboBoxStyle.Simple)
3440
if (
DropDownStyle
== ComboBoxStyle.DropDown)
3451
if ((
DropDownStyle
== ComboBoxStyle.Simple) && ParentInternal is not null)
3663
&&
DropDownStyle
== ComboBoxStyle.DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
68
if (comboBox.
DropDownStyle
== ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.DataGridViewComboBoxEditingControlAccessibleObject.cs (1)
57
=> owner.
DropDownStyle
!= ComboBoxStyle.Simple,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
160
get { return ComboBox.
DropDownStyle
; }
System.Windows.Forms.Tests (15)
System\Windows\Forms\ComboBoxTests.cs (15)
71
Assert.Equal(ComboBoxStyle.DropDown, control.
DropDownStyle
);
464
if (control.
DropDownStyle
== ComboBoxStyle.DropDownList)
490
if (control.
DropDownStyle
== ComboBoxStyle.DropDownList)
828
Assert.Equal(value, control.
DropDownStyle
);
833
Assert.Equal(value, control.
DropDownStyle
);
860
Assert.Equal(value, control.
DropDownStyle
);
867
Assert.Equal(value, control.
DropDownStyle
);
926
Assert.Equal(value, control.
DropDownStyle
);
934
Assert.Equal(value, control.
DropDownStyle
);
956
Assert.Equal(ComboBoxStyle.DropDownList, control.
DropDownStyle
);
961
Assert.Equal(ComboBoxStyle.DropDownList, control.
DropDownStyle
);
966
Assert.Equal(ComboBoxStyle.Simple, control.
DropDownStyle
);
972
Assert.Equal(ComboBoxStyle.DropDownList, control.
DropDownStyle
);
2733
comboBox.
DropDownStyle
.Should().Be(ComboBoxStyle.DropDown);
2739
comboBox.
DropDownStyle
.Should().Be(ComboBoxStyle.Simple);