126 writes to DropDownStyle
Accessibility_Core_App (1)
CommonControl1.Designer.cs (1)
318this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
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 (3)
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.Interop.Tests (1)
AccessibleObjectTests.cs (1)
446DropDownStyle = ComboBoxStyle.DropDown
System.Windows.Forms.Tests (107)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxAccessibleObjectTests.cs (11)
36DropDownStyle = comboBoxStyle 59DropDownStyle = comboBoxStyle 85DropDownStyle = comboBoxStyle 149DropDownStyle = comboBoxStyle 185DropDownStyle = comboBoxStyle 212DropDownStyle = comboBoxStyle 327using ComboBox comboBox = new() { DropDownStyle = ComboBoxStyle.Simple }; 346using ComboBox comboBox = new() { DropDownStyle = style }; 358using ComboBox comboBox = new() { DropDownStyle = style }; 382using ComboBox comboBox = new() { DropDownStyle = ComboBoxStyle.Simple }; 400using ComboBox comboBox = new() { DropDownStyle = style };
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (7)
89DropDownStyle = comboBoxStyle 128DropDownStyle = comboBoxStyle 246comboBox.DropDownStyle = comboBoxStyle; 295comboBox.DropDownStyle = comboBoxStyle; 386comboBox.DropDownStyle = comboBoxStyle; 448comboBox.DropDownStyle = comboBoxStyle; 655DropDownStyle = comboBoxStyle
System\Windows\Forms\Application.ParkingWindowTests.cs (2)
42DropDownStyle = ComboBoxStyle.DropDown 52comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System\Windows\Forms\ComboBox.ComboBoxChildDropDownButtonUiaProviderTests.cs (4)
39DropDownStyle = comboBoxStyle 64DropDownStyle = comboBoxStyle 93DropDownStyle = comboBoxStyle 110DropDownStyle = comboBoxStyle
System\Windows\Forms\ComboBox.ComboBoxChildEditUiaProviderTests.cs (5)
42DropDownStyle = comboBoxStyle 88DropDownStyle = comboBoxStyle 115DropDownStyle = comboBoxStyle 131DropDownStyle = comboBoxStyle 147DropDownStyle = comboBoxStyle
System\Windows\Forms\ComboBox.ComboBoxChildListUiaProviderTests.cs (3)
34DropDownStyle = comboBoxStyle 63DropDownStyle = comboBoxStyle 99DropDownStyle = comboBoxStyle,
System\Windows\Forms\ComboBox.ComboBoxChildNativeWindowTests.cs (1)
11using ComboBox comboBox = new() { DropDownStyle = ComboBoxStyle.DropDown };
System\Windows\Forms\ComboBox.ComboBoxChildTextUiaProviderTests.cs (2)
29DropDownStyle = ComboBoxStyle.DropDownList 54DropDownStyle = ComboBoxStyle.DropDownList
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (53)
20using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 45using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 61using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 75using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 91using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 107using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 123using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, RightToLeft = rightToLeft }; 141using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, RightToLeft = rightToLeft }; 157using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 177using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 190using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 205using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 225using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 245using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 259using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 283using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 307using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 345using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 368using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 388using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 408using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 434using ComboBox comboBox = new() { Size = size, DropDownStyle = dropdownStyle }; 463using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 500using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 540using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 574using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 592using ComboBox comboBox = new ComboBox() { DropDownStyle = dropDownStyle, Size = new Size(250, 100) }; 623using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 643using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 660using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 677using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 693using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 709using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 725using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 745using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 779using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 821using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 847using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 867using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = size }; 888using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 912using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 930using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 949using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 980using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 1010using ComboBox comboBox = new() { DropDownStyle = dropDownStyle }; 1041using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1062using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1079using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1098using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1111using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1125using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) }; 1149using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(width, height) }; 1170using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(50, 100) };
System\Windows\Forms\ComboBoxTests.cs (19)
462control.DropDownStyle = ComboBoxStyle.DropDownList; 477control.DropDownStyle = ComboBoxStyle.DropDown; 488control.DropDownStyle = ComboBoxStyle.DropDownList; 826DropDownStyle = value 832control.DropDownStyle = value; 858DropDownStyle = value 866control.DropDownStyle = value; 899control.DropDownStyle = ComboBoxStyle.DropDownList; 902control.DropDownStyle = ComboBoxStyle.Simple; 906control.DropDownStyle = ComboBoxStyle.DropDownList; 925control.DropDownStyle = value; 933control.DropDownStyle = value; 955control.DropDownStyle = ComboBoxStyle.DropDownList; 960control.DropDownStyle = ComboBoxStyle.DropDownList; 965control.DropDownStyle = ComboBoxStyle.Simple; 971control.DropDownStyle = ComboBoxStyle.DropDownList; 981Assert.Throws<InvalidEnumArgumentException>("value", () => control.DropDownStyle = value); 2155using ComboBox comboBox = new() { DropDownStyle = dropDownStyle, Size = new(100, 50) }; 2735comboBox.DropDownStyle = 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)
71Assert.Equal(ComboBoxStyle.DropDown, control.DropDownStyle); 464if (control.DropDownStyle == ComboBoxStyle.DropDownList) 490if (control.DropDownStyle == ComboBoxStyle.DropDownList) 828Assert.Equal(value, control.DropDownStyle); 833Assert.Equal(value, control.DropDownStyle); 860Assert.Equal(value, control.DropDownStyle); 867Assert.Equal(value, control.DropDownStyle); 926Assert.Equal(value, control.DropDownStyle); 934Assert.Equal(value, control.DropDownStyle); 956Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 961Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 966Assert.Equal(ComboBoxStyle.Simple, control.DropDownStyle); 972Assert.Equal(ComboBoxStyle.DropDownList, control.DropDownStyle); 2733comboBox.DropDownStyle.Should().Be(ComboBoxStyle.DropDown); 2739comboBox.DropDownStyle.Should().Be(ComboBoxStyle.Simple);