87 references to DropDownList
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
177
this.comboBoxTemplates.DropDownStyle = System.Windows.Forms.ComboBoxStyle.
DropDownList
;
System.Windows.Forms (24)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
228
ComboBoxStyle.
DropDownList
=> owner.ChildTextAccessibleObject,
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
63
_owner.DropDownStyle == ComboBoxStyle.
DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
86
return _owningComboBox.DropDownStyle == ComboBoxStyle.
DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (20)
147
if (DropDownStyle == ComboBoxStyle.
DropDownList
189
if (DropDownStyle == ComboBoxStyle.
DropDownList
352
case ComboBoxStyle.
DropDownList
:
947
get => DropDownStyle == ComboBoxStyle.
DropDownList
? string.Empty : Text.Substring(SelectionStart, SelectionLength);
950
if (DropDownStyle != ComboBoxStyle.
DropDownList
)
1053
if (value == ComboBoxStyle.
DropDownList
1105
if (DropDownStyle == ComboBoxStyle.
DropDownList
&& !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1)
1204
return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.
DropDownList
));
1927
or ComboBoxStyle.
DropDownList
)
2169
if (DropDownStyle != ComboBoxStyle.
DropDownList
)
2231
if (DropDownStyle == ComboBoxStyle.
DropDownList
&& SelectedIndex == index)
2281
if (ok && DropDownStyle != ComboBoxStyle.
DropDownList
)
2594
&& (DropDownStyle == ComboBoxStyle.
DropDownList
|| DropDownStyle == ComboBoxStyle.DropDown))
2742
&& DropDownStyle == ComboBoxStyle.
DropDownList
)
2887
if (DropDownStyle == ComboBoxStyle.
DropDownList
)
2937
if (DropDownStyle != ComboBoxStyle.
DropDownList
2963
&& DropDownStyle == ComboBoxStyle.
DropDownList
3169
if (DropDownStyle == ComboBoxStyle.
DropDownList
)
3172
Debug.Assert(DropDownStyle == ComboBoxStyle.
DropDownList
);
3661
&& DropDownStyle == ComboBoxStyle.
DropDownList
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1278
comboBox.DropDownStyle = ComboBoxStyle.
DropDownList
;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
114
if (style is ComboBoxStyle.DropDown or ComboBoxStyle.
DropDownList
)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
434
_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.Tests (52)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (8)
31
[InlineData(ComboBoxStyle.
DropDownList
)]
54
[InlineData(ComboBoxStyle.
DropDownList
)]
79
[InlineData(ComboBoxStyle.
DropDownList
)]
206
[InlineData(ComboBoxStyle.
DropDownList
)]
338
yield return new object[] { ComboBoxStyle.
DropDownList
, false, SR.AccessibleActionExpand };
339
yield return new object[] { ComboBoxStyle.
DropDownList
, true, SR.AccessibleActionCollapse };
396
[InlineData(ComboBoxStyle.
DropDownList
, false, true)]
397
[InlineData(ComboBoxStyle.
DropDownList
, true, false)]
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (10)
83
[InlineData(ComboBoxStyle.
DropDownList
)]
122
[InlineData(ComboBoxStyle.
DropDownList
)]
167
[InlineData(ComboBoxStyle.
DropDownList
)]
180
[InlineData(ComboBoxStyle.
DropDownList
)]
508
[InlineData(ComboBoxStyle.
DropDownList
)]
527
[InlineData(ComboBoxStyle.
DropDownList
)]
546
[InlineData(ComboBoxStyle.
DropDownList
)]
581
[InlineData(ComboBoxStyle.
DropDownList
)]
600
[InlineData(ComboBoxStyle.
DropDownList
)]
619
[InlineData(ComboBoxStyle.
DropDownList
)]
System\Windows\Forms\Application.ParkingWindowTests.cs (1)
52
comboBox.DropDownStyle = ComboBoxStyle.
DropDownList
;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (3)
76
AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.
DropDownList
86
[InlineData(ComboBoxStyle.
DropDownList
)]
104
[InlineData(ComboBoxStyle.
DropDownList
)]
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (2)
16
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
64
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
75
AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.
DropDownList
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (2)
29
DropDownStyle = ComboBoxStyle.
DropDownList
54
DropDownStyle = ComboBoxStyle.
DropDownList
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (7)
324
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
480
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
518
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
557
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
607
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
760
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
802
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
System\Windows\Forms\ComboBoxTests.cs (15)
463
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
465
if (control.DropDownStyle == ComboBoxStyle.
DropDownList
)
489
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
491
if (control.DropDownStyle == ComboBoxStyle.
DropDownList
)
846
yield return new object[] { source, mode, ComboBoxStyle.
DropDownList
, source != AutoCompleteSource.ListItems ? AutoCompleteMode.None : mode };
900
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
907
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
914
[InlineData(ComboBoxStyle.
DropDownList
, 1)]
956
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
957
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
961
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
962
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
972
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
973
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
2152
[InlineData(ComboBoxStyle.
DropDownList
)]
System\Windows\Forms\ToolStripComboBoxTests.cs (3)
164
[InlineData(ComboBoxStyle.
DropDownList
)]
288
_toolStripComboBox.DropDownStyle = ComboBoxStyle.
DropDownList
;
289
_toolStripComboBox.DropDownStyle.Should().Be(ComboBoxStyle.
DropDownList
);
WinFormsControlsTest (6)
ComboBoxes.Designer.cs (4)
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
;
ComboBoxesWithScrollBars.Designer.cs (1)
95
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.
DropDownList
;
ToolStripTests.Designer.cs (1)
275
this.toolStripComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.
DropDownList
;