Base:
property
BackColor
System.Windows.Forms.Control.BackColor
12 writes to BackColor
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (2)
79BackColor = opaqueBackColor; 84BackColor = dataGridViewCellStyle.BackColor;
System.Windows.Forms.Tests (10)
System\Windows\Forms\ComboBoxTests.cs (10)
175BackColor = value 181control.BackColor = value; 205control.BackColor = value; 213control.BackColor = value; 255control.BackColor = Color.Red; 260control.BackColor = Color.Red; 265control.BackColor = Color.Empty; 271control.BackColor = Color.Red; 283control.BackColor = Color.Red; 299control.BackColor = Color.Red;
19 references to BackColor
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (3)
2005PInvokeCore.SetBkColor(dc, (COLORREF)(uint)ColorTranslator.ToWin32(BackColor)); 3594BackColor); 3734&& !(SystemInformation.HighContrast && BackColor == SystemColors.Window))
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
203=> comboBox.Enabled ? comboBox.BackColor : SystemColors.Control;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ComboBoxTests.cs (15)
34Assert.Equal(SystemColors.Window, control.BackColor); 177Assert.Equal(expected, control.BackColor); 182Assert.Equal(expected, control.BackColor); 206Assert.Equal(expected, control.BackColor); 214Assert.Equal(expected, control.BackColor); 256Assert.Equal(Color.Red, control.BackColor); 261Assert.Equal(Color.Red, control.BackColor); 266Assert.Equal(SystemColors.Window, control.BackColor); 272Assert.Equal(Color.Red, control.BackColor); 279PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)]; 284Assert.Equal(Color.Red, control.BackColor); 288Assert.Equal(SystemColors.Window, control.BackColor); 295PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ComboBox))[nameof(ComboBox.BackColor)]; 300Assert.Equal(Color.Red, control.BackColor); 304Assert.Equal(SystemColors.Window, control.BackColor);