87 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: 947get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 950if (DropDownStyle != ComboBoxStyle.DropDownList) 1053if (value == ComboBoxStyle.DropDownList 1105if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 1204return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.DropDownList)); 1927or ComboBoxStyle.DropDownList) 2169if (DropDownStyle != ComboBoxStyle.DropDownList) 2231if (DropDownStyle == ComboBoxStyle.DropDownList && SelectedIndex == index) 2281if (ok && DropDownStyle != ComboBoxStyle.DropDownList) 2594&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.DropDown)) 2742&& DropDownStyle == ComboBoxStyle.DropDownList) 2887if (DropDownStyle == ComboBoxStyle.DropDownList) 2937if (DropDownStyle != ComboBoxStyle.DropDownList 2963&& DropDownStyle == ComboBoxStyle.DropDownList 3169if (DropDownStyle == ComboBoxStyle.DropDownList) 3172Debug.Assert(DropDownStyle == ComboBoxStyle.DropDownList); 3661&& DropDownStyle == ComboBoxStyle.DropDownList
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1278comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
114if (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)] 338yield return new object[] { ComboBoxStyle.DropDownList, false, SR.AccessibleActionExpand }; 339yield 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)
52comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (3)
76AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.DropDownList 86[InlineData(ComboBoxStyle.DropDownList)] 104[InlineData(ComboBoxStyle.DropDownList)]
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (2)
16if (comboBoxStyle == ComboBoxStyle.DropDownList) 64if (comboBoxStyle == ComboBoxStyle.DropDownList)
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (1)
75AccessibleObject expectedItem = comboBoxStyle == ComboBoxStyle.DropDownList
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (2)
29DropDownStyle = ComboBoxStyle.DropDownList 54DropDownStyle = ComboBoxStyle.DropDownList
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (7)
324if (comboBoxStyle == ComboBoxStyle.DropDownList) 480if (comboBoxStyle == ComboBoxStyle.DropDownList) 518if (comboBoxStyle == ComboBoxStyle.DropDownList) 557if (comboBoxStyle == ComboBoxStyle.DropDownList) 607if (comboBoxStyle == ComboBoxStyle.DropDownList) 760if (comboBoxStyle == ComboBoxStyle.DropDownList) 802if (comboBoxStyle == ComboBoxStyle.DropDownList)
System\Windows\Forms\ComboBoxTests.cs (15)
463control.DropDownStyle = ComboBoxStyle.DropDownList; 465if (control.DropDownStyle == ComboBoxStyle.DropDownList) 489control.DropDownStyle = ComboBoxStyle.DropDownList; 491if (control.DropDownStyle == ComboBoxStyle.DropDownList) 846yield return new object[] { source, mode, ComboBoxStyle.DropDownList, source != AutoCompleteSource.ListItems ? AutoCompleteMode.None : mode }; 900control.DropDownStyle = ComboBoxStyle.DropDownList; 907control.DropDownStyle = ComboBoxStyle.DropDownList; 914[InlineData(ComboBoxStyle.DropDownList, 1)] 956control.DropDownStyle = ComboBoxStyle.DropDownList; 957Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 961control.DropDownStyle = ComboBoxStyle.DropDownList; 962Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 972control.DropDownStyle = ComboBoxStyle.DropDownList; 973Assert.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)
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;