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;
69 references to DropDownStyle
System.Windows.Forms (69)
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 363switch (DropDownStyle) 835&& DropDownStyle != ComboBoxStyle.Simple) 880if (DropDownStyle == ComboBoxStyle.Simple) 1038get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 1041if (DropDownStyle != ComboBoxStyle.DropDownList) 1137if (DropDownStyle == value) 1196if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 1296return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.DropDownList)); 1485if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1504if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1544if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1569if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 2010if (DropDownStyle is ComboBoxStyle.DropDown 2058return DropDownStyle == ComboBoxStyle.Simple ? new(_childListBox) : new(this, _dropDownHandle); 2063return DropDownStyle == ComboBoxStyle.Simple ? _childListBox! : _childDropDown!; 2253if (DropDownStyle != ComboBoxStyle.DropDownList) 2315if (DropDownStyle == ComboBoxStyle.DropDownList && SelectedIndex == index) 2365if (ok && DropDownStyle != ComboBoxStyle.DropDownList) 2371if (DropDownStyle == ComboBoxStyle.Simple) 2402if (DropDownStyle == ComboBoxStyle.Simple) 2699&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.DropDown)) 2767if (DropDownStyle == ComboBoxStyle.Simple 2852&& DropDownStyle == ComboBoxStyle.DropDownList) 2911if (DropDownStyle == ComboBoxStyle.Simple && recreate) 2933if (DropDownStyle == ComboBoxStyle.Simple 2993if (DropDownStyle == ComboBoxStyle.DropDown) 3000if (DropDownStyle == ComboBoxStyle.DropDownList) 3050if (DropDownStyle != ComboBoxStyle.DropDownList 3076&& DropDownStyle == ComboBoxStyle.DropDownList 3273if (DropDownStyle == ComboBoxStyle.DropDownList) 3276Debug.Assert(DropDownStyle == ComboBoxStyle.DropDownList); 3364if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle == ComboBoxStyle.Simple) 3544if (DropDownStyle == ComboBoxStyle.DropDown) 3555if ((DropDownStyle == ComboBoxStyle.Simple) && ParentInternal is not null) 3748&& DropDownStyle != ComboBoxStyle.Simple 3769&& DropDownStyle != ComboBoxStyle.Simple 3812&& DropDownStyle == ComboBoxStyle.DropDownList 3864if (DropDownStyle == ComboBoxStyle.Simple 4050&& DropDownStyle == ComboBoxStyle.DropDownList 4151if (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 (11)
66Rectangle editBounds = DropDownStyle == ComboBoxStyle.DropDownList 71Rectangle simpleListBounds = DropDownStyle == ComboBoxStyle.Simple 141if (DropDownStyle != ComboBoxStyle.Simple 186int extraButtonWidth = DropDownStyle == ComboBoxStyle.Simple 250if (DropDownStyle == ComboBoxStyle.Simple) 392if (DropDownStyle == ComboBoxStyle.Simple) 576if (!UsesModernComboAdapter || DropDownStyle == ComboBoxStyle.Simple) 584return DropDownStyle == ComboBoxStyle.DropDownList 591if (DropDownStyle == ComboBoxStyle.Simple 612|| DropDownStyle == ComboBoxStyle.Simple 643&& DropDownStyle != ComboBoxStyle.Simple)
System\Windows\Forms\Controls\ComboBox\ComboBox.ModernComboAdapter.cs (2)
28_dropDownStyle = comboBox.DropDownStyle; 57&& combo.DropDownStyle == _dropDownStyle
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; }