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
:
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)
1274
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)
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.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)
462
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
464
if (control.DropDownStyle == ComboBoxStyle.
DropDownList
)
488
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
490
if (control.DropDownStyle == ComboBoxStyle.
DropDownList
)
845
yield return new object[] { source, mode, ComboBoxStyle.
DropDownList
, source != AutoCompleteSource.ListItems ? AutoCompleteMode.None : mode };
899
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
906
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
913
[InlineData(ComboBoxStyle.
DropDownList
, 1)]
955
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
956
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
960
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
961
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
971
control.DropDownStyle = ComboBoxStyle.
DropDownList
;
972
Assert.Equal(ComboBoxStyle.
DropDownList
, control.DropDownStyle);
2151
[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
;