7 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)
1271comboBox.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)
249_newItemTypes.DropDownStyle = ComboBoxStyle.DropDownList;
75 references to DropDownStyle
System.Windows.Forms (75)
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 (44)
152if (DropDownStyle == ComboBoxStyle.DropDownList 196if (DropDownStyle == ComboBoxStyle.DropDownList 324childListControlhandle: DropDownStyle == ComboBoxStyle.Simple 360&& DropDownStyle == ComboBoxStyle.Simple)) 365switch (DropDownStyle) 839&& DropDownStyle != ComboBoxStyle.Simple) 884if (DropDownStyle == ComboBoxStyle.Simple) 1042get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 1045if (DropDownStyle != ComboBoxStyle.DropDownList) 1141if (DropDownStyle == value) 1200if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 1300return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.DropDownList)); 1489if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1508if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1548if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1573if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 2014if (DropDownStyle is ComboBoxStyle.DropDown 2062return DropDownStyle == ComboBoxStyle.Simple ? new(_childListBox) : new(this, _dropDownHandle); 2067return DropDownStyle == ComboBoxStyle.Simple ? _childListBox! : _childDropDown!; 2257if (DropDownStyle != ComboBoxStyle.DropDownList) 2319if (DropDownStyle == ComboBoxStyle.DropDownList && SelectedIndex == index) 2369if (ok && DropDownStyle != ComboBoxStyle.DropDownList) 2375if (DropDownStyle == ComboBoxStyle.Simple) 2406if (DropDownStyle == ComboBoxStyle.Simple) 2712&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.DropDown)) 2780if (DropDownStyle == ComboBoxStyle.Simple 2865&& DropDownStyle == ComboBoxStyle.DropDownList) 2924if (DropDownStyle == ComboBoxStyle.Simple && recreate) 2946if (DropDownStyle == ComboBoxStyle.Simple 3006if (DropDownStyle == ComboBoxStyle.DropDown) 3013if (DropDownStyle == ComboBoxStyle.DropDownList) 3063if (DropDownStyle != ComboBoxStyle.DropDownList 3089&& DropDownStyle == ComboBoxStyle.DropDownList 3286if (DropDownStyle == ComboBoxStyle.DropDownList) 3289Debug.Assert(DropDownStyle == ComboBoxStyle.DropDownList); 3377if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle == ComboBoxStyle.Simple) 3557if (DropDownStyle == ComboBoxStyle.DropDown) 3568if ((DropDownStyle == ComboBoxStyle.Simple) && ParentInternal is not null) 3779&& DropDownStyle != ComboBoxStyle.Simple 3822&& DropDownStyle == ComboBoxStyle.DropDownList 3874if (DropDownStyle == ComboBoxStyle.Simple 4060&& DropDownStyle == ComboBoxStyle.DropDownList 4161if (DropDownStyle == ComboBoxStyle.Simple
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
68if (comboBox.DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.Modern.cs (16)
74Rectangle editBounds = DropDownStyle == ComboBoxStyle.DropDownList 79Rectangle simpleListBounds = DropDownStyle == ComboBoxStyle.Simple 150if (DropDownStyle != ComboBoxStyle.Simple 180if (DropDownStyle == ComboBoxStyle.DropDown) 216int extraButtonWidth = DropDownStyle == ComboBoxStyle.Simple 222if (DropDownStyle == ComboBoxStyle.Simple) 354if (DropDownStyle == ComboBoxStyle.Simple) 390if (DropDownStyle != ComboBoxStyle.Simple 552if (DropDownStyle == ComboBoxStyle.Simple) 628&& DropDownStyle == ComboBoxStyle.Simple 752if (DropDownStyle == ComboBoxStyle.DropDownList) 806if (!UsesModernComboAdapter || DropDownStyle == ComboBoxStyle.Simple) 814return DropDownStyle == ComboBoxStyle.DropDownList 821if (DropDownStyle == ComboBoxStyle.Simple 842|| DropDownStyle == ComboBoxStyle.Simple 873&& DropDownStyle != ComboBoxStyle.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (3)
28_dropDownStyle = comboBox.DropDownStyle; 57&& combo.DropDownStyle == _dropDownStyle 397if (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; }