/// <summary> /// Initializes a new instance of the <see cref="DropDownButton"/> class. /// </summary> /// <param name="comboBox">The combo box.</param> public DropDownButton(FwComboBoxBase comboBox) { m_comboBox = comboBox; if (Application.RenderWithVisualStyles) { DoubleBuffered = true; } else { Image = ResourceHelper.ComboMenuArrowIcon; // no text, just the image BackColor = SystemColors.Control; } }
internal ComboTextBox(FwComboBoxBase comboBox) { m_comboBox = comboBox; // Allows it to be big unless client shrinks it. Font = new Font(Font.Name, (float)100.0); #if !__MonoCS__ if (Application.RenderWithVisualStyles) { DoubleBuffered = true; BackColor = Color.Transparent; } else #endif { // And, if not changed, it's background color is white. BackColor = SystemColors.Window; } }