127 writes to DropDownStyle
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
177this.comboBoxTemplates.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1274comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
161set { ComboBox.DropDownStyle = value; }
System.Windows.Forms.Design (4)
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.Interop.Tests (1)
AccessibleObjectTests.cs (1)
446DropDownStyle = ComboBoxStyle.DropDown
System.Windows.Forms.Tests (107)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (11)
38DropDownStyle = comboBoxStyle 61DropDownStyle = comboBoxStyle 87DropDownStyle = comboBoxStyle 151DropDownStyle = comboBoxStyle 187DropDownStyle = comboBoxStyle 214DropDownStyle = comboBoxStyle 329using ComboBox comboBox = new() { DropDownStyle = ComboBoxStyle.Simple }; 348using ComboBox comboBox = new() { DropDownStyle = style }; 360using ComboBox comboBox = new() { DropDownStyle = style }; 384using ComboBox comboBox = new() { DropDownStyle = ComboBoxStyle.Simple }; 402using ComboBox comboBox = new() { DropDownStyle = style };
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (7)
91DropDownStyle = comboBoxStyle 130DropDownStyle = comboBoxStyle 248comboBox.DropDownStyle = comboBoxStyle; 297comboBox.DropDownStyle = comboBoxStyle; 388comboBox.DropDownStyle = comboBoxStyle; 450comboBox.DropDownStyle = comboBoxStyle; 657DropDownStyle = comboBoxStyle
System\Windows\Forms\Application.ParkingWindowTests.cs (2)
44DropDownStyle = ComboBoxStyle.DropDown 54comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (4)
41DropDownStyle = comboBoxStyle 66DropDownStyle = comboBoxStyle 95DropDownStyle = comboBoxStyle 112DropDownStyle = comboBoxStyle
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (5)
44DropDownStyle = comboBoxStyle 90DropDownStyle = comboBoxStyle 117DropDownStyle = comboBoxStyle 133DropDownStyle = comboBoxStyle 149DropDownStyle = comboBoxStyle
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (3)
36DropDownStyle = comboBoxStyle 65DropDownStyle = comboBoxStyle 101DropDownStyle = comboBoxStyle,
System\Windows\Forms\ComboBox.ComboBoxChildNativeWindowTests.cs (1)
13using ComboBox comboBox = new() { DropDownStyle = ComboBoxStyle.DropDown };
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (2)
31DropDownStyle = ComboBoxStyle.DropDownList 56DropDownStyle = ComboBoxStyle.DropDownList
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (53)
22using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 47using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 63using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 77using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 93using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 109using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 125using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, RightToLeft = rightToLeft }; 143using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, RightToLeft = rightToLeft }; 159using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 179using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 192using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 207using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 227using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 247using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 261using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 285using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 309using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 347using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 370using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 390using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 410using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 436using ComboBox comboBox = new() { Size = size, DropDownStyle = dropdownStyle }; 465using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 502using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 542using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 576using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 594using ComboBox comboBox = new ComboBox() { DropDownStyle = dropDownStyle, Size = new Size(250, 100) }; 625using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 645using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 662using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 679using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 695using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 711using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 727using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 747using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 781using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 823using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 849using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 869using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 890using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 914using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 932using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 951using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 982using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 1012using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 1043using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1064using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1081using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1100using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1113using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1127using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1151using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 1172using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) };
System\Windows\Forms\ComboBoxTests.cs (19)
464control.DropDownStyle = ComboBoxStyle.DropDownList; 479control.DropDownStyle = ComboBoxStyle.DropDown; 490control.DropDownStyle = ComboBoxStyle.DropDownList; 828DropDownStyle = value 834control.DropDownStyle = value; 860DropDownStyle = value 868control.DropDownStyle = value; 901control.DropDownStyle = ComboBoxStyle.DropDownList; 904control.DropDownStyle = ComboBoxStyle.Simple; 908control.DropDownStyle = ComboBoxStyle.DropDownList; 927control.DropDownStyle = value; 935control.DropDownStyle = value; 957control.DropDownStyle = ComboBoxStyle.DropDownList; 962control.DropDownStyle = ComboBoxStyle.DropDownList; 967control.DropDownStyle = ComboBoxStyle.Simple; 973control.DropDownStyle = ComboBoxStyle.DropDownList; 983Assert.Throws<InvalidEnumArgumentException>("value", () => control.DropDownStyle = value); 2157using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(100, 50) }; 2737comboBox.DropDownStyle = ComboBoxStyle.Simple;
TestPassApp (1)
CommonControl1.Designer.cs (1)
318this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
WinFormsControlsTest (11)
ComboBoxes.Designer.cs (9)
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; 169this.comboBox9.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple; 182this.comboBox10.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple; 195this.comboBox11.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple; 209this.comboBox12.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple; 229this.dataBoundComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
ComboBoxesWithScrollBars.Designer.cs (2)
83this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple; 95this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
65 references to DropDownStyle
System.Windows.Forms (50)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (5)
43? owner.DropDownStyle != ComboBoxStyle.Simple 101if (!owner.IsHandleCreated || owner.DropDownStyle == ComboBoxStyle.Simple) 225return owner?.DropDownStyle switch 235this.TryGetOwnerAs(out ComboBox? owner) && owner.DropDownStyle == ComboBoxStyle.Simple 241if (!this.IsOwnerHandleCreated(out ComboBox? owner) || owner.DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
63_owner.DropDownStyle == ComboBoxStyle.DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
56=> _owningComboBox.DropDownStyle != ComboBoxStyle.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (2)
86return _owningComboBox.DropDownStyle == ComboBoxStyle.DropDownList 91return _owningComboBox.DropDownStyle == ComboBoxStyle.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (38)
147if (DropDownStyle == ComboBoxStyle.DropDownList 189if (DropDownStyle == ComboBoxStyle.DropDownList 309new ComboBoxChildListUiaProvider(this, DropDownStyle == ComboBoxStyle.Simple ? _childListBox!.HWND : _dropDownHandle); 342switch (DropDownStyle) 789if (DropDownStyle == ComboBoxStyle.Simple) 948get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 951if (DropDownStyle != ComboBoxStyle.DropDownList) 1047if (DropDownStyle == value) 1106if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 1206return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.DropDownList)); 1395if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1414if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1454if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1479if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1928if (DropDownStyle is ComboBoxStyle.DropDown 1976return DropDownStyle == ComboBoxStyle.Simple ? new(_childListBox) : new(this, _dropDownHandle); 1981return DropDownStyle == ComboBoxStyle.Simple ? _childListBox! : _childDropDown!; 2171if (DropDownStyle != ComboBoxStyle.DropDownList) 2233if (DropDownStyle == ComboBoxStyle.DropDownList && SelectedIndex == index) 2283if (ok && DropDownStyle != ComboBoxStyle.DropDownList) 2289if (DropDownStyle == ComboBoxStyle.Simple) 2320if (DropDownStyle == ComboBoxStyle.Simple) 2596&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.DropDown)) 2664if (DropDownStyle == ComboBoxStyle.Simple) 2744&& DropDownStyle == ComboBoxStyle.DropDownList) 2803if (DropDownStyle == ComboBoxStyle.Simple && recreate) 2823if (DropDownStyle == ComboBoxStyle.Simple && IsHandleCreated) 2882if (DropDownStyle == ComboBoxStyle.DropDown) 2889if (DropDownStyle == ComboBoxStyle.DropDownList) 2939if (DropDownStyle != ComboBoxStyle.DropDownList 2965&& DropDownStyle == ComboBoxStyle.DropDownList 3171if (DropDownStyle == ComboBoxStyle.DropDownList) 3174Debug.Assert(DropDownStyle == ComboBoxStyle.DropDownList); 3262if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle == ComboBoxStyle.Simple) 3440if (DropDownStyle == ComboBoxStyle.DropDown) 3451if ((DropDownStyle == ComboBoxStyle.Simple) && ParentInternal is not null) 3663&& DropDownStyle == ComboBoxStyle.DropDownList
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
68if (comboBox.DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.DataGridViewComboBoxEditingControlAccessibleObject.cs (1)
57=> owner.DropDownStyle != ComboBoxStyle.Simple,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
160get { return ComboBox.DropDownStyle; }
System.Windows.Forms.Tests (15)
System\Windows\Forms\ComboBoxTests.cs (15)
73Assert.Equal(ComboBoxStyle.DropDown, control.DropDownStyle); 466if (control.DropDownStyle == ComboBoxStyle.DropDownList) 492if (control.DropDownStyle == ComboBoxStyle.DropDownList) 830Assert.Equal(value, control.DropDownStyle); 835Assert.Equal(value, control.DropDownStyle); 862Assert.Equal(value, control.DropDownStyle); 869Assert.Equal(value, control.DropDownStyle); 928Assert.Equal(value, control.DropDownStyle); 936Assert.Equal(value, control.DropDownStyle); 958Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 963Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 968Assert.Equal(ComboBoxStyle.Simple, control.DropDownStyle); 974Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 2735comboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDown); 2741comboBox.DropDownStyle.Should().Be(ComboBoxStyle.Simple);