ComponentFactory.Krypton.Ribbon.KryptonRibbonGroupComboBox.KryptonRibbonGroupComboBox C# (CSharp) Method

KryptonRibbonGroupComboBox() public method

Initialise a new instance of the KryptonRibbonGroupComboBox class.
public KryptonRibbonGroupComboBox ( ) : System
return System
        public KryptonRibbonGroupComboBox()
        {
            // Default fields
            _visible = true;
            _enabled = true;
            _itemSizeCurrent = GroupItemSize.Medium;
            _shortcutKeys = Keys.None;
            _keyTip = "X";

            // Create the actual combo box control and set initial settings
            _comboBox = new KryptonComboBox();
            _comboBox.InputControlStyle = InputControlStyle.Ribbon;
            _comboBox.AlwaysActive = false;
            _comboBox.MinimumSize = new Size(121, 0);
            _comboBox.MaximumSize = new Size(121, 0);
            _comboBox.TabStop = false;

            // Hook into the events that are then exposed via ourself
            _comboBox.DropDown += new EventHandler(OnComboBoxDropDown);
            _comboBox.DropDownClosed += new EventHandler(OnComboBoxDropDownClosed);
            _comboBox.DropDownStyleChanged += new EventHandler(OnComboBoxDropDownStyleChanged);
            _comboBox.SelectedIndexChanged += new EventHandler(OnComboBoxSelectedIndexChanged);
            _comboBox.SelectionChangeCommitted += new EventHandler(OnComboBoxSelectionChangeCommitted);
            _comboBox.TextUpdate += new EventHandler(OnComboBoxTextUpdate);
            _comboBox.GotFocus += new EventHandler(OnComboBoxGotFocus);
            _comboBox.LostFocus += new EventHandler(OnComboBoxLostFocus);
            _comboBox.KeyDown += new KeyEventHandler(OnComboBoxKeyDown);
            _comboBox.KeyUp += new KeyEventHandler(OnComboBoxKeyUp);
            _comboBox.KeyPress += new KeyPressEventHandler(OnComboBoxKeyPress);
            _comboBox.PreviewKeyDown += new PreviewKeyDownEventHandler(OnComboBoxPreviewKeyDown);
            _comboBox.DataSourceChanged += new EventHandler(OnComboBoxDataSourceChanged);
            _comboBox.DisplayMemberChanged += new EventHandler(OnComboBoxDisplayMemberChanged);
            _comboBox.Format += new ListControlConvertEventHandler(OnComboBoxFormat);
            _comboBox.FormatInfoChanged += new EventHandler(OnComboBoxFormatInfoChanged);
            _comboBox.FormatStringChanged += new EventHandler(OnComboBoxFormatStringChanged);
            _comboBox.FormattingEnabledChanged += new EventHandler(OnComboBoxFormattingEnabledChanged);
            _comboBox.SelectedValueChanged += new EventHandler(OnComboBoxSelectedValueChanged);
            _comboBox.ValueMemberChanged += new EventHandler(OnComboBoxValueMemberChanged);

            // Ensure we can track mouse events on the text box
            MonitorControl(_comboBox);
        }