88 references to DropDownList
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
177this.comboBoxTemplates.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
System.Windows.Forms (24)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
228ComboBoxStyle.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)
86return _owningComboBox.DropDownStyle == ComboBoxStyle.DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (20)
147if (DropDownStyle == ComboBoxStyle.DropDownList 189if (DropDownStyle == ComboBoxStyle.DropDownList 352case ComboBoxStyle.DropDownList: 948get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 951if (DropDownStyle != ComboBoxStyle.DropDownList) 1054if (value == ComboBoxStyle.DropDownList 1106if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 1206return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.DropDownList)); 1929or ComboBoxStyle.DropDownList) 2171if (DropDownStyle != ComboBoxStyle.DropDownList) 2233if (DropDownStyle == ComboBoxStyle.DropDownList && SelectedIndex == index) 2283if (ok && DropDownStyle != ComboBoxStyle.DropDownList) 2596&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.DropDown)) 2744&& DropDownStyle == ComboBoxStyle.DropDownList) 2889if (DropDownStyle == ComboBoxStyle.DropDownList) 2939if (DropDownStyle != ComboBoxStyle.DropDownList 2965&& DropDownStyle == ComboBoxStyle.DropDownList 3171if (DropDownStyle == ComboBoxStyle.DropDownList) 3174Debug.Assert(DropDownStyle == ComboBoxStyle.DropDownList); 3663&& DropDownStyle == ComboBoxStyle.DropDownList
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1271comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
112if (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)] 340yield return new object[] { ComboBoxStyle.DropDownList, false, SR.AccessibleActionExpand }; 341yield 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)
54comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (3)
78AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.DropDownList 88[InlineData(ComboBoxStyle.DropDownList)] 106[InlineData(ComboBoxStyle.DropDownList)]
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (2)
18if (comboBoxStyle == ComboBoxStyle.DropDownList) 66if (comboBoxStyle == ComboBoxStyle.DropDownList)
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
77AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.DropDownList
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (2)
31DropDownStyle = ComboBoxStyle.DropDownList 56DropDownStyle = ComboBoxStyle.DropDownList
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (7)
326if (comboBoxStyle == ComboBoxStyle.DropDownList) 482if (comboBoxStyle == ComboBoxStyle.DropDownList) 520if (comboBoxStyle == ComboBoxStyle.DropDownList) 559if (comboBoxStyle == ComboBoxStyle.DropDownList) 609if (comboBoxStyle == ComboBoxStyle.DropDownList) 762if (comboBoxStyle == ComboBoxStyle.DropDownList) 804if (comboBoxStyle == ComboBoxStyle.DropDownList)
System\Windows\Forms\ComboBoxTests.cs (15)
464control.DropDownStyle = ComboBoxStyle.DropDownList; 466if (control.DropDownStyle == ComboBoxStyle.DropDownList) 490control.DropDownStyle = ComboBoxStyle.DropDownList; 492if (control.DropDownStyle == ComboBoxStyle.DropDownList) 847yield return new object[] { source, mode, ComboBoxStyle.DropDownList, source != AutoCompleteSource.ListItems ? AutoCompleteMode.None : mode }; 901control.DropDownStyle = ComboBoxStyle.DropDownList; 908control.DropDownStyle = ComboBoxStyle.DropDownList; 915[InlineData(ComboBoxStyle.DropDownList, 1)] 957control.DropDownStyle = ComboBoxStyle.DropDownList; 958Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 962control.DropDownStyle = ComboBoxStyle.DropDownList; 963Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 973control.DropDownStyle = ComboBoxStyle.DropDownList; 974Assert.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)
67this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 106this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 131this.comboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 156this.comboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
ComboBoxesWithScrollBars.Designer.cs (1)
95this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
ToolStripTests.Designer.cs (1)
275this.toolStripComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;