74 references to ComboBoxStyle
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
177this.comboBoxTemplates.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
System.Windows.Forms (65)
_generated\1\Validation.cs (2)
143public static void Validate(System.Windows.Forms.ComboBoxStyle enumToValidate, string parameterName = "value") 147ReportEnumValidationError(parameterName, intValue, typeof(System.Windows.Forms.ComboBoxStyle));
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (7)
43? owner.DropDownStyle != ComboBoxStyle.Simple 101if (!owner.IsHandleCreated || owner.DropDownStyle == ComboBoxStyle.Simple) 227ComboBoxStyle.DropDown => owner.ChildEditAccessibleObject, 228ComboBoxStyle.DropDownList => owner.ChildTextAccessibleObject, 229ComboBoxStyle.Simple => null, 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 (47)
147if (DropDownStyle == ComboBoxStyle.DropDownList 189if (DropDownStyle == ComboBoxStyle.DropDownList 314new ComboBoxChildListUiaProvider(this, DropDownStyle == ComboBoxStyle.Simple ? _childListBox!.HWND : _dropDownHandle); 349case ComboBoxStyle.Simple: 352case ComboBoxStyle.DropDown: 357case ComboBoxStyle.DropDownList: 794if (DropDownStyle == ComboBoxStyle.Simple) 953get => DropDownStyle == ComboBoxStyle.DropDownList ? string.Empty : Text.Substring(SelectionStart, SelectionLength); 956if (DropDownStyle != ComboBoxStyle.DropDownList) 1044[DefaultValue(ComboBoxStyle.DropDown)] 1047public ComboBoxStyle DropDownStyle 1049get => Properties.GetValueOrDefault(s_propStyle, ComboBoxStyle.DropDown); 1059if (value == ComboBoxStyle.DropDownList 1069Properties.AddOrRemoveValue(s_propStyle, value, defaultValue: ComboBoxStyle.DropDown); 1111if (DropDownStyle == ComboBoxStyle.DropDownList && !IsHandleCreated && !string.IsNullOrEmpty(value) && FindStringExact(value) == -1) 1211return ((_autoCompleteMode != AutoCompleteMode.None) && (DropDownStyle != ComboBoxStyle.DropDownList)); 1400if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1419if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1459if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1484if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1926if (DropDownStyle is ComboBoxStyle.DropDown 1927or ComboBoxStyle.DropDownList) 1974return DropDownStyle == ComboBoxStyle.Simple ? new(_childListBox) : new(this, _dropDownHandle); 1979return DropDownStyle == ComboBoxStyle.Simple ? _childListBox! : _childDropDown!; 2169if (DropDownStyle != ComboBoxStyle.DropDownList) 2231if (DropDownStyle == ComboBoxStyle.DropDownList && SelectedIndex == index) 2281if (ok && DropDownStyle != ComboBoxStyle.DropDownList) 2287if (DropDownStyle == ComboBoxStyle.Simple) 2318if (DropDownStyle == ComboBoxStyle.Simple) 2589&& (DropDownStyle == ComboBoxStyle.DropDownList || DropDownStyle == ComboBoxStyle.DropDown)) 2657if (DropDownStyle == ComboBoxStyle.Simple) 2737&& DropDownStyle == ComboBoxStyle.DropDownList) 2796if (DropDownStyle == ComboBoxStyle.Simple && recreate) 2816if (DropDownStyle == ComboBoxStyle.Simple && IsHandleCreated) 2875if (DropDownStyle == ComboBoxStyle.DropDown) 2882if (DropDownStyle == ComboBoxStyle.DropDownList) 2932if (DropDownStyle != ComboBoxStyle.DropDownList 2958&& DropDownStyle == ComboBoxStyle.DropDownList 3155if (DropDownStyle == ComboBoxStyle.DropDownList) 3158Debug.Assert(DropDownStyle == ComboBoxStyle.DropDownList); 3246if ((specified & BoundsSpecified.Height) != BoundsSpecified.None && DropDownStyle == ComboBoxStyle.Simple) 3424if (DropDownStyle == ComboBoxStyle.DropDown) 3435if ((DropDownStyle == ComboBoxStyle.Simple) && ParentInternal is not null) 3650&& DropDownStyle == ComboBoxStyle.DropDownList 3681if (DropDownStyle == ComboBoxStyle.Simple 3797if (Application.IsDarkModeEnabled && !Enabled && DropDownStyle == ComboBoxStyle.DropDownList)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
68if (comboBox.DropDownStyle == ComboBoxStyle.Simple)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1271comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.DataGridViewComboBoxEditingControlAccessibleObject.cs (1)
57=> owner.DropDownStyle != ComboBoxStyle.Simple,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
155[DefaultValue(ComboBoxStyle.DropDown)] 158public ComboBoxStyle DropDownStyle
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\ComboBoxDesigner.cs (4)
107ComboBoxStyle style = ComboBoxStyle.Simple; 112if (style is ComboBoxStyle.DropDown or ComboBoxStyle.DropDownList)
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;