88 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
:
948
get => DropDownStyle == ComboBoxStyle.
DropDownList
? string.Empty : Text.Substring(SelectionStart, SelectionLength);
951
if (DropDownStyle != ComboBoxStyle.
DropDownList
)
1054
if (value == ComboBoxStyle.
DropDownList
1106
if (DropDownStyle == ComboBoxStyle.
DropDownList
&& !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1)
1206
return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.
DropDownList
));
1929
or ComboBoxStyle.
DropDownList
)
2171
if (DropDownStyle != ComboBoxStyle.
DropDownList
)
2233
if (DropDownStyle == ComboBoxStyle.
DropDownList
&& SelectedIndex == index)
2283
if (ok && DropDownStyle != ComboBoxStyle.
DropDownList
)
2596
&& (DropDownStyle == ComboBoxStyle.
DropDownList
|| DropDownStyle == ComboBoxStyle.DropDown))
2744
&& DropDownStyle == ComboBoxStyle.
DropDownList
)
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
);
3663
&& DropDownStyle == ComboBoxStyle.
DropDownList
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1271
comboBox.DropDownStyle = ComboBoxStyle.
DropDownList
;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
112
if (style is ComboBoxStyle.DropDown or ComboBoxStyle.
DropDownList
)
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\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
253
_newItemTypes.DropDownStyle = ComboBoxStyle.
DropDownList
;
System.Windows.Forms.Tests (52)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (8)
33
[InlineData(ComboBoxStyle.
DropDownList
)]
56
[InlineData(ComboBoxStyle.
DropDownList
)]
81
[InlineData(ComboBoxStyle.
DropDownList
)]
208
[InlineData(ComboBoxStyle.
DropDownList
)]
340
yield return new object[] { ComboBoxStyle.
DropDownList
, false, SR.AccessibleActionExpand };
341
yield return new object[] { ComboBoxStyle.
DropDownList
, true, SR.AccessibleActionCollapse };
398
[InlineData(ComboBoxStyle.
DropDownList
, false, true)]
399
[InlineData(ComboBoxStyle.
DropDownList
, true, false)]
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (10)
85
[InlineData(ComboBoxStyle.
DropDownList
)]
124
[InlineData(ComboBoxStyle.
DropDownList
)]
169
[InlineData(ComboBoxStyle.
DropDownList
)]
182
[InlineData(ComboBoxStyle.
DropDownList
)]
510
[InlineData(ComboBoxStyle.
DropDownList
)]
529
[InlineData(ComboBoxStyle.
DropDownList
)]
548
[InlineData(ComboBoxStyle.
DropDownList
)]
583
[InlineData(ComboBoxStyle.
DropDownList
)]
602
[InlineData(ComboBoxStyle.
DropDownList
)]
621
[InlineData(ComboBoxStyle.
DropDownList
)]
System\Windows\Forms\Application.ParkingWindowTests.cs (1)
54
comboBox.DropDownStyle = ComboBoxStyle.
DropDownList
;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (3)
78
AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.
DropDownList
88
[InlineData(ComboBoxStyle.
DropDownList
)]
106
[InlineData(ComboBoxStyle.
DropDownList
)]
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (2)
18
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
66
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
77
AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.
DropDownList
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (2)
31
DropDownStyle = ComboBoxStyle.
DropDownList
56
DropDownStyle = ComboBoxStyle.
DropDownList
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (7)
326
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
482
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
520
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
559
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
609
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
762
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
804
if (comboBoxStyle == ComboBoxStyle.
DropDownList
)
System\Windows\Forms\ComboBoxTests.cs (15)
464
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
466
if (control.DropDownStyle == ComboBoxStyle.
DropDownList
)
490
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
492
if (control.DropDownStyle == ComboBoxStyle.
DropDownList
)
847
yield return new object[] { source, mode, ComboBoxStyle.
DropDownList
, source != AutoCompleteSource.ListItems ? AutoCompleteMode.None : mode };
901
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
908
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
915
[InlineData(ComboBoxStyle.
DropDownList
, 1)]
957
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
958
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
962
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
963
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
973
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
974
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
2153
[InlineData(ComboBoxStyle.
DropDownList
)]
System\Windows\Forms\ToolStripComboBoxTests.cs (3)
162
[InlineData(ComboBoxStyle.
DropDownList
)]
286
_toolStripComboBox.DropDownStyle = ComboBoxStyle.
DropDownList
;
287
_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
;